Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions crates/sqlclean-cli/skill/references/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,19 @@ SELECT [order id] FROM orders
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]
```

SQLClean reads SQL with SQLQuack's parsers. A file in a dialect SQLQuack does not parse yet, such
as `mysql`, is not checked, fixed or formatted: `check` reports it once as a warning (in JSON, under
`unavailable`), and it never fails a command or counts as a problem.
SQLClean reads SQL with SQLQuack's parsers. `check` and `fix` read `duckdb`, `generic`, `postgres`,
`snowflake` and `sqlite` files, and `format` lays out `duckdb` and `snowflake` files; a `generic`,
`postgres` or `sqlite` file is checked and fixed but left as written by `format`. A file in any
other dialect, such as `mysql` or `tsql`, is not checked, fixed or formatted: `check` reports it once
as a warning (in JSON, under `unavailable`), `format` leaves it unchanged with a warning, and it
never fails a command or counts as a problem.

```text
warning: SQL lint is unavailable for the mysql dialect: SQLQuack does not parse it yet
--> reports/q.sql
```

Supported dialects, case-insensitive:
Dialect names SQLClean accepts, case-insensitive:

| Dialect | Also accepted |
|---------|---------------|
Expand Down
11 changes: 7 additions & 4 deletions website/src/content/docs/docs/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,19 @@ SELECT [order id] FROM orders
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]
```

SQLClean reads SQL with SQLQuack's parsers. A file in a dialect SQLQuack does not parse yet, such
as `mysql`, is not checked, fixed or formatted: `check` reports it once as a warning (in JSON, under
`unavailable`), and it never fails a command or counts as a problem.
SQLClean reads SQL with SQLQuack's parsers. `check` and `fix` read `duckdb`, `generic`, `postgres`,
`snowflake` and `sqlite` files, and `format` lays out `duckdb` and `snowflake` files; a `generic`,
`postgres` or `sqlite` file is checked and fixed but left as written by `format`. A file in any
other dialect, such as `mysql` or `tsql`, is not checked, fixed or formatted: `check` reports it once
as a warning (in JSON, under `unavailable`), `format` leaves it unchanged with a warning, and it
never fails a command or counts as a problem.

```text
warning: SQL lint is unavailable for the mysql dialect: SQLQuack does not parse it yet
--> reports/q.sql
```

Supported dialects, case-insensitive:
Dialect names SQLClean accepts, case-insensitive:

| Dialect | Also accepted |
|---------|---------------|
Expand Down
Loading