File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 2828
2929### Dialect
3030
31- You can pass dialect :
31+ You can pass dialect with ` FormatConfig ` :
3232
3333``` scala
3434SqlFormatter .format(
3535 " SELECT *" ,
36- dialect = SqlDialect .CouchbaseN1QL )
36+ FormatConfig ( dialect = SqlDialect .CouchbaseN1QL ) )
3737```
3838
3939Currently just four SQL dialects are supported:
@@ -46,10 +46,12 @@ Currently just four SQL dialects are supported:
4646### Format
4747
4848Defaults to two spaces.
49- You can pass indent string to ` format ` :
49+ You can pass indent string with ` FormatConfig ` to ` format ` :
5050
5151``` scala
52- SqlFormatter .format(" SELECT * FROM table1" , indent = " " )
52+ SqlFormatter .format(
53+ " SELECT * FROM table1" ,
54+ FormatConfig (indent = " " ))
5355```
5456
5557This will output:
You can’t perform that action at this time.
0 commit comments