squawk-cli 2.8.0 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +21 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -44,42 +44,42 @@ warning[prefer-bigint-over-int]: Using 32-bit integer fields can result in hitti
44
44
  --> example.sql:6:10
45
45
  |
46
46
  6 | "id" serial NOT NULL PRIMARY KEY,
47
- | ^^^^^^
47
+ | ------
48
48
  |
49
49
  = help: Use 64-bit integer values instead to prevent hitting this limit.
50
50
  warning[prefer-identity]: Serial types make schema, dependency, and permission management difficult.
51
51
  --> example.sql:6:10
52
52
  |
53
53
  6 | "id" serial NOT NULL PRIMARY KEY,
54
- | ^^^^^^
54
+ | ------
55
55
  |
56
56
  = help: Use Identity columns instead.
57
57
  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.
58
58
  --> example.sql:7:13
59
59
  |
60
60
  7 | "alpha" varchar(100) NOT NULL
61
- | ^^^^^^^^^^^^
61
+ | ------------
62
62
  |
63
63
  = help: Use a `TEXT` field with a `CHECK` constraint.
64
64
  warning[require-concurrent-index-creation]: During normal index creation, table updates are blocked, but reads are still allowed.
65
65
  --> example.sql:10:1
66
66
  |
67
67
  10 | CREATE INDEX "field_name_idx" ON "table_name" ("field_name");
68
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68
+ | ------------------------------------------------------------
69
69
  |
70
70
  = help: Use `CONCURRENTLY` to avoid blocking writes.
71
71
  warning[constraint-missing-not-valid]: By default new constraints require a table scan and block writes to the table while that scan occurs.
72
72
  --> example.sql:12:24
73
73
  |
74
74
  12 | ALTER TABLE table_name ADD CONSTRAINT field_name_constraint UNIQUE (field_name);
75
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
75
+ | --------------------------------------------------------
76
76
  |
77
77
  = help: Use `NOT VALID` with a later `VALIDATE CONSTRAINT` call.
78
78
  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.
79
79
  --> example.sql:12:28
80
80
  |
81
81
  12 | ALTER TABLE table_name ADD CONSTRAINT field_name_constraint UNIQUE (field_name);
82
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
82
+ | ----------------------------------------------------
83
83
  |
84
84
  = help: Create an index `CONCURRENTLY` and create the constraint using the index.
85
85
 
@@ -225,12 +225,9 @@ repos:
225
225
 
226
226
  Note the `files` parameter as it specifies the location of the files to be linted.
227
227
 
228
- ## Prior Art
228
+ ## Prior Art / Related
229
229
 
230
230
  - <https://github.com/erik/squabble>
231
-
232
- ### Related Tools
233
-
234
231
  - <https://github.com/yandex/zero-downtime-migrations>
235
232
  - <https://github.com/tbicr/django-pg-zero-downtime-migrations>
236
233
  - <https://github.com/3YOURMIND/django-migration-linter>
@@ -240,6 +237,20 @@ Note the `files` parameter as it specifies the location of the files to be linte
240
237
  - <https://github.com/kristiandupont/schemalint>
241
238
  - <https://github.com/supabase-community/postgres-language-server>
242
239
  - <https://github.com/premium-minds/sonar-postgres-plugin>
240
+ - <https://engineering.fb.com/2022/11/30/data-infrastructure/static-analysis-sql-queries/>
241
+ - <https://github.com/xNaCly/sqleibniz>
242
+ - <https://github.com/sqlfluff/sqlfluff>
243
+ - <https://atlasgo.io/lint/analyzers>
244
+ - <https://github.com/tobymao/sqlglot>
245
+ - <https://github.com/paupino/pg_parse>
246
+ - <https://github.com/sql-formatter-org/sql-formatter>
247
+ - <https://github.com/darold/pgFormatter>
248
+ - <https://github.com/sqls-server/sqls>
249
+ - <https://github.com/joe-re/sql-language-server>
250
+ - <https://github.com/nene/sql-parser-cst>
251
+ - <https://github.com/nene/prettier-plugin-sql-cst>
252
+ - <https://www.sqlstyle.guide>
253
+ - <https://github.com/ivank/potygen>
243
254
 
244
255
  ## Related Blog Posts / SE Posts / PG Docs
245
256
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squawk-cli",
3
- "version": "2.8.0",
3
+ "version": "2.10.0",
4
4
  "description": "linter for PostgreSQL, focused on migrations",
5
5
  "repository": "git@github.com:sbdchd/squawk.git",
6
6
  "author": "Steve Dignam <steve@dignam.xyz>",