Skip to content

Commit

Permalink
docs(sql): align parser options (#205)
Browse files Browse the repository at this point in the history
Co-authored-by: JounQin <admin@1stg.me>
  • Loading branch information
frozenbonito and JounQin authored Jul 21, 2022
1 parent 03c9267 commit 2c1f8c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-lobsters-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"prettier-plugin-sql": patch
---

docs: align parser options
13 changes: 11 additions & 2 deletions packages/sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,17 @@ interface SqlOptions {
| 'redshift'
| 'spark'
| 'tsql' // default `sql`
uppercase: boolean // default `false`
linesBetweenQueries: number // default `2`
keywordCase: 'preserve' | 'upper' | 'lower' // default `preserve`
indentStyle: 'standard' | 'tabularLeft' | 'tabularRight' // default `standard`
logicalOperatorNewline: 'before' | 'after' // default `before`
aliasAs: 'preserve' | 'always' | 'never' | 'select' // default `preserve`
tabulateAlias: boolean // default `false`
commaPosition: 'after' | 'before' | 'tabular' // default `after`
expressionWidth: number // default `50`
linesBetweenQueries: number // default `1`
denseOperators: boolean // default `false`
newlineBeforeSemicolon: boolean // default `false`
params: Array | Object

// node-sql-parser
type: 'table' | 'column' // default `table`
Expand Down

0 comments on commit 2c1f8c8

Please sign in to comment.