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
Copy file name to clipboardExpand all lines: README.md
+37-37Lines changed: 37 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,50 +45,50 @@ Use the WASM powered playground to check your SQL locally in the browser!
45
45
```shell
46
46
❯ squawk example.sql
47
47
warning[prefer-bigint-over-int]: Using 32-bit integer fields can result in hitting the max `int` limit.
48
-
--> example.sql:6:10
49
-
|
50
-
6 |"id" serial NOT NULL PRIMARY KEY,
51
-
|------
52
-
|
53
-
= help: Use 64-bit integer values instead to prevent hitting this limit.
48
+
╭▸ example.sql:6:10
49
+
│
50
+
6 │"id" serial NOT NULL PRIMARY KEY,
51
+
│━━━━━━
52
+
│
53
+
╰ help: Use 64-bit integer values instead to prevent hitting this limit.
54
54
warning[prefer-identity]: Serial types make schema, dependency, and permission management difficult.
55
-
--> example.sql:6:10
56
-
|
57
-
6 |"id" serial NOT NULL PRIMARY KEY,
58
-
|------
59
-
|
60
-
= help: Use Identity columns instead.
55
+
╭▸ example.sql:6:10
56
+
│
57
+
6 │"id" serial NOT NULL PRIMARY KEY,
58
+
│━━━━━━
59
+
│
60
+
╰ help: Use an `IDENTITY` column instead.
61
61
warning[prefer-text-field]: Changing the size of a `varchar` field requires an `ACCESS EXCLUSIVE` lock, that will prevent all reads and writes to the table.
62
-
--> example.sql:7:13
63
-
|
64
-
7 |"alpha" varchar(100) NOT NULL
65
-
|------------
66
-
|
67
-
= help: Use a `TEXT` field with a `CHECK` constraint.
62
+
╭▸ example.sql:7:13
63
+
│
64
+
7 │"alpha" varchar(100) NOT NULL
65
+
│━━━━━━━━━━━━
66
+
│
67
+
╰ help: Use a `TEXT` field with a `CHECK` constraint.
68
68
warning[require-concurrent-index-creation]: During normal index creation, table updates are blocked, but reads are still allowed.
69
-
--> example.sql:10:1
70
-
|
71
-
10 | CREATE INDEX "field_name_idx" ON "table_name" ("field_name");
╰ help: Use `NOT VALID` with a later `VALIDATE CONSTRAINT` call.
82
82
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.
83
-
--> example.sql:12:28
84
-
|
85
-
12 | ALTER TABLE table_name ADD CONSTRAINT field_name_constraint UNIQUE (field_name);
╰ help: Use `NOT VALID` with a later `VALIDATE CONSTRAINT` call.
66
67
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.
67
-
--> example-migration.sql:2:28
68
-
|
69
-
2 | ALTER TABLE table_name ADD CONSTRAINT field_name_constraint UNIQUE (field_name);
0 commit comments