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
warning[disallowed-unique-constraint]: Adding a `UNIQUE` constraint requires an `ACCESS EXCLUSIVE` lock which blocks reads and writes to the table while the index is built.
50
+
--> example-migration.sql:2:28
51
+
|
52
+
2 | ALTER TABLE table_name ADD CONSTRAINT field_name_constraint UNIQUE (field_name);
= help: Create an index CONCURRENTLY and create the constraint using the index.
56
+
57
+
Find detailed examples and solutions for each rule at https://squawkhq.com/docs/rules
58
+
Found 2 issues in 1 file (checked 1 source file)
51
59
```
52
60
53
61
See ["Running Migrations"](./safe_migrations.md#safety-requirements) for information about safely applying migrations in Postgres.
54
62
55
63
The [CLI docs](./cli.md) have more information about the `squawk` CLI tool and the [GitHub Integration docs](./github_app.md) outline configuring Squawk to work with GitHub pull requests.
56
64
65
+
## Playground
66
+
67
+
You can also lint your SQL in the [Squawk Playground](https://play.squawkhq.com) using the WASM compiled version!
Copy file name to clipboardExpand all lines: docs/docs/troubleshooting.md
-11Lines changed: 0 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,3 @@ title: Troubleshooting
4
4
---
5
5
6
6
If you encounter an issue using Squawk that can't be resolved with these docs, please [open an issue](https://github.com/sbdchd/squawk/issues/new).
7
-
8
-
9
-
## common error messages
10
-
11
-
### postgres failed to parse query
12
-
13
-
Squawk was unable to parse the query using the PostgreSQL parser.
14
-
15
-
Usually the provided statement contains an error and isn't a valid Postgres statement.
16
-
17
-
Squawk uses the [libpg_query-sys](https://github.com/tdbgamer/libpg_query-sys) Rust bindings to [libpg_query](https://github.com/pganalyze/libpg_query) to parse Postgres queries using the Postgres parser.
0 commit comments