You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 189c34e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: crates/sqlclean-cli/skill/references/docs/configuration.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,16 +123,19 @@ SELECT [order id] FROM orders
123
123
error[SQLCLEAN999]: SQL could not be parsed as duckdb: Parse error at line 1, column 17: Expected RBracket, got Var ('id') near [SELECT [order id] FROM orders]
124
124
```
125
125
126
-
SQLClean reads SQL with SQLQuack's parsers. A file in a dialect SQLQuack does not parse yet, such
127
-
as `mysql`, is not checked, fixed or formatted: `check` reports it once as a warning (in JSON, under
128
-
`unavailable`), and it never fails a command or counts as a problem.
126
+
SQLClean reads SQL with SQLQuack's parsers. `check` and `fix` read `duckdb`, `generic`, `postgres`,
127
+
`snowflake` and `sqlite` files, and `format` lays out `duckdb` and `snowflake` files; a `generic`,
128
+
`postgres` or `sqlite` file is checked and fixed but left as written by `format`. A file in any
129
+
other dialect, such as `mysql` or `tsql`, is not checked, fixed or formatted: `check` reports it once
130
+
as a warning (in JSON, under `unavailable`), `format` leaves it unchanged with a warning, and it
131
+
never fails a command or counts as a problem.
129
132
130
133
```text
131
134
warning: SQL lint is unavailable for the mysql dialect: SQLQuack does not parse it yet
Copy file name to clipboardExpand all lines: website/src/content/docs/docs/configuration.mdx
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,16 +112,19 @@ SELECT [order id] FROM orders
112
112
error[SQLCLEAN999]: SQL could not be parsed as duckdb: Parse error at line 1, column 17: Expected RBracket, got Var ('id') near [SELECT [order id] FROM orders]
113
113
```
114
114
115
-
SQLClean reads SQL with SQLQuack's parsers. A file in a dialect SQLQuack does not parse yet, such
116
-
as `mysql`, is not checked, fixed or formatted: `check` reports it once as a warning (in JSON, under
117
-
`unavailable`), and it never fails a command or counts as a problem.
115
+
SQLClean reads SQL with SQLQuack's parsers. `check` and `fix` read `duckdb`, `generic`, `postgres`,
116
+
`snowflake` and `sqlite` files, and `format` lays out `duckdb` and `snowflake` files; a `generic`,
117
+
`postgres` or `sqlite` file is checked and fixed but left as written by `format`. A file in any
118
+
other dialect, such as `mysql` or `tsql`, is not checked, fixed or formatted: `check` reports it once
119
+
as a warning (in JSON, under `unavailable`), `format` leaves it unchanged with a warning, and it
120
+
never fails a command or counts as a problem.
118
121
119
122
```text
120
123
warning: SQL lint is unavailable for the mysql dialect: SQLQuack does not parse it yet
0 commit comments