File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ Or when using the VSCode extension: Settings -> SQL-Formatter-VSCode: SQLFlavour
228
228
229
229
### Module parse failed: Unexpected token
230
230
231
- This typically happens when bundling an appication with Webpack.
231
+ This typically happens when bundling an application with Webpack.
232
232
The cause is that Babel (through ` babel-loader ` ) is not configured
233
233
to support class properties syntax:
234
234
@@ -264,7 +264,7 @@ SELECT {col1}, {col2} FROM {tablename}
264
264
265
265
While templating is not directly supported by SQL Formatter, the workaround
266
266
is to use [ paramTypes] ( docs/paramTypes.md ) config option to treat these
267
- occurances of templating constructs as prepared-statement parameter-placeholders:
267
+ occurrences of templating constructs as prepared-statement parameter-placeholders:
268
268
269
269
``` js
270
270
format (' SELECT {col1}, {col2} FROM {tablename};' , {
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ An object with the following following optional fields:
66
66
- ** ` numbered ` ** : ` Array<"?" | ":" | "$"> ` . To allow for ` ?1 ` , ` :2 ` and/or ` $3 ` syntax for numbered placholders.
67
67
- ** ` named ` ** : ` Array<":" | "@" | "$"> ` . To allow for ` :name ` , ` @name ` and/or ` $name ` syntax for named placholders.
68
68
- ** ` quoted ` ** : ` Array<":" | "@" | "$"> ` . To allow for ` :"name" ` , ` @"name" ` and/or ` $"name" ` syntax for quoted placholders.
69
- Note that the type of quotes dependes on the quoted identifiers supported by a dialect.
69
+ Note that the type of quotes depends on the quoted identifiers supported by a dialect.
70
70
For example in MySQL using ` paramTypes: {quoted: [':']} ` would allow you to use `` :`name` `` syntax,
71
71
while in Transact-SQL ` :"name" ` and ` :[name] ` would work instead.
72
72
See [ identifier syntax wiki page] [ ] for information about differences in support quoted identifiers.
You can’t perform that action at this time.
0 commit comments