Skip to content

Commit 71398d4

Browse files
update readme
1 parent 6c226a1 commit 71398d4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ FROM
2828

2929
### Dialect
3030

31-
You can pass dialect :
31+
You can pass dialect with `FormatConfig` :
3232

3333
```scala
3434
SqlFormatter.format(
3535
"SELECT *",
36-
dialect = SqlDialect.CouchbaseN1QL)
36+
FormatConfig(dialect = SqlDialect.CouchbaseN1QL))
3737
```
3838

3939
Currently just four SQL dialects are supported:
@@ -46,10 +46,12 @@ Currently just four SQL dialects are supported:
4646
### Format
4747

4848
Defaults 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

5557
This will output:

0 commit comments

Comments
 (0)