@intentius/chant-lexicon-sql 0.124.19 → 0.124.22
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.
- package/dist/clickhouse/access.d.ts +36 -7
- package/dist/clickhouse/access.d.ts.map +1 -1
- package/dist/clickhouse/apply/statements.d.ts.map +1 -1
- package/dist/clickhouse/entities.d.ts +60 -0
- package/dist/clickhouse/entities.d.ts.map +1 -1
- package/dist/clickhouse/import/generator.d.ts +1 -7
- package/dist/clickhouse/import/generator.d.ts.map +1 -1
- package/dist/clickhouse/live/catalog.d.ts +6 -5
- package/dist/clickhouse/live/catalog.d.ts.map +1 -1
- package/dist/clickhouse/live/describe-resources.d.ts.map +1 -1
- package/dist/clickhouse/parser.d.ts +16 -0
- package/dist/clickhouse/parser.d.ts.map +1 -1
- package/dist/clickhouse/plan/deep.d.ts.map +1 -1
- package/dist/clickhouse/plan/diff.d.ts.map +1 -1
- package/dist/clickhouse/plan/normalize.d.ts +6 -3
- package/dist/clickhouse/plan/normalize.d.ts.map +1 -1
- package/dist/clickhouse/plan/rules.d.ts +3 -0
- package/dist/clickhouse/plan/rules.d.ts.map +1 -1
- package/dist/clickhouse/topology.d.ts.map +1 -1
- package/dist/clickhouse.d.ts +1 -1
- package/dist/clickhouse.d.ts.map +1 -1
- package/dist/codegen/registry.d.ts.map +1 -1
- package/dist/coverage/clickhouse.json +8 -8
- package/dist/coverage/postgres.json +6 -6
- package/dist/files/clickhouse.d.ts +2 -1
- package/dist/files/clickhouse.d.ts.map +1 -1
- package/dist/files/postgres.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/integrity.json +10 -10
- package/dist/lint/post-synth/postgres-names.d.ts.map +1 -1
- package/dist/lint/post-synth/sql101.d.ts.map +1 -1
- package/dist/lint/rules/sqlch001.d.ts +1 -1
- package/dist/lint/rules/sqlch001.d.ts.map +1 -1
- package/dist/lint/rules/sqlpg001.d.ts.map +1 -1
- package/dist/lint/rules/templates.d.ts +1 -1
- package/dist/lint/rules/templates.d.ts.map +1 -1
- package/dist/lsp/postgres-template.d.ts.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/meta.json +40 -0
- package/dist/okf/index.md +9 -1
- package/dist/okf/rules/SQL101.md +1 -0
- package/dist/okf/rules/SQLCH001.md +2 -2
- package/dist/okf/rules/SQLPG113.md +2 -0
- package/dist/okf/types/PostgresAggregate.md +13 -0
- package/dist/okf/types/PostgresCast.md +9 -0
- package/dist/okf/types/PostgresCollation.md +9 -0
- package/dist/okf/types/PostgresCompositeType.md +13 -0
- package/dist/okf/types/PostgresEventTrigger.md +9 -0
- package/dist/okf/types/PostgresRangeType.md +13 -0
- package/dist/okf/types/Quota.md +9 -0
- package/dist/okf/types/SettingsProfile.md +9 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/postgres/apply/apply.d.ts.map +1 -1
- package/dist/postgres/apply/statements.d.ts +4 -3
- package/dist/postgres/apply/statements.d.ts.map +1 -1
- package/dist/postgres/entities.d.ts +129 -6
- package/dist/postgres/entities.d.ts.map +1 -1
- package/dist/postgres/entity-types.d.ts +6 -0
- package/dist/postgres/entity-types.d.ts.map +1 -1
- package/dist/postgres/import/generator.d.ts +3 -2
- package/dist/postgres/import/generator.d.ts.map +1 -1
- package/dist/postgres/live/catalog-kinds.d.ts +28 -0
- package/dist/postgres/live/catalog-kinds.d.ts.map +1 -0
- package/dist/postgres/live/catalog.d.ts +15 -11
- package/dist/postgres/live/catalog.d.ts.map +1 -1
- package/dist/postgres/live/describe-resources.d.ts.map +1 -1
- package/dist/postgres/parser.d.ts +88 -5
- package/dist/postgres/parser.d.ts.map +1 -1
- package/dist/postgres/plan/deep.d.ts.map +1 -1
- package/dist/postgres/plan/diff.d.ts.map +1 -1
- package/dist/postgres/plan/normalize.d.ts +17 -2
- package/dist/postgres/plan/normalize.d.ts.map +1 -1
- package/dist/postgres/plan/rules.d.ts +3 -0
- package/dist/postgres/plan/rules.d.ts.map +1 -1
- package/dist/postgres/plan/schema.d.ts +3 -2
- package/dist/postgres/plan/schema.d.ts.map +1 -1
- package/dist/postgres/testing/roundtrip-schema.d.ts +4 -2
- package/dist/postgres/testing/roundtrip-schema.d.ts.map +1 -1
- package/dist/postgres.d.ts +1 -1
- package/dist/postgres.d.ts.map +1 -1
- package/dist/rules/postgres-names.ts +15 -2
- package/dist/rules/postgres-templates.ts +2 -2
- package/dist/rules/sql101.ts +1 -0
- package/dist/rules/sqlch001.ts +10 -3
- package/dist/rules/sqlpg001.ts +6 -21
- package/dist/rules/sqlpg113.ts +1 -1
- package/dist/rules/templates.ts +2 -2
- package/dist/validate.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/clickhouse/access.ts +197 -22
- package/src/clickhouse/apply/statements.ts +17 -5
- package/src/clickhouse/entities.ts +78 -2
- package/src/clickhouse/import/generator.ts +16 -3
- package/src/clickhouse/live/catalog.ts +57 -10
- package/src/clickhouse/live/describe-resources.ts +3 -1
- package/src/clickhouse/live/kinds.e2e.test.ts +179 -0
- package/src/clickhouse/live/undeclarable.e2e.test.ts +5 -4
- package/src/clickhouse/parser.test.ts +45 -2
- package/src/clickhouse/parser.ts +111 -3
- package/src/clickhouse/plan/deep.ts +25 -6
- package/src/clickhouse/plan/diff.ts +41 -1
- package/src/clickhouse/plan/normalize.ts +12 -4
- package/src/clickhouse/plan/rules.ts +22 -1
- package/src/clickhouse/quota-profile.test.ts +186 -0
- package/src/clickhouse/table-function.test.ts +54 -0
- package/src/clickhouse/testdata/server-ddl-baseline.json +17 -14
- package/src/clickhouse/topology.ts +4 -2
- package/src/clickhouse.ts +6 -0
- package/src/codegen/postgres-classifier-page.ts +1 -1
- package/src/codegen/registry.ts +8 -0
- package/src/core/undeclarable.test.ts +22 -19
- package/src/coverage/clickhouse.json +8 -8
- package/src/coverage/postgres.json +6 -6
- package/src/files/clickhouse.ts +14 -6
- package/src/files/postgres.ts +19 -5
- package/src/generated/lexicon-sql.json +40 -0
- package/src/index.ts +2 -2
- package/src/lint/post-synth/postgres-names.ts +15 -2
- package/src/lint/post-synth/sql101.ts +1 -0
- package/src/lint/post-synth/sqlpg113.ts +1 -1
- package/src/lint/rules/postgres-templates.ts +2 -2
- package/src/lint/rules/sqlch001.ts +10 -3
- package/src/lint/rules/sqlpg001.ts +6 -21
- package/src/lint/rules/templates.ts +2 -2
- package/src/lsp/postgres-template.ts +14 -0
- package/src/mcp/index.ts +5 -5
- package/src/mcp/postgres.ts +1 -1
- package/src/plugin.ts +7 -1
- package/src/postgres/apply/apply.ts +8 -2
- package/src/postgres/apply/statements.ts +29 -6
- package/src/postgres/entities.test.ts +2 -2
- package/src/postgres/entities.ts +316 -28
- package/src/postgres/entity-types.ts +6 -0
- package/src/postgres/import/generator.ts +31 -4
- package/src/postgres/kinds.test.ts +140 -0
- package/src/postgres/live/catalog-kinds.ts +312 -0
- package/src/postgres/live/catalog.ts +30 -12
- package/src/postgres/live/describe-resources.ts +14 -5
- package/src/postgres/live/kinds.e2e.test.ts +182 -0
- package/src/postgres/live/roundtrip.e2e.test.ts +9 -3
- package/src/postgres/live/undeclarable.e2e.test.ts +15 -13
- package/src/postgres/parser.test.ts +2 -1
- package/src/postgres/parser.ts +307 -17
- package/src/postgres/plan/deep.ts +33 -0
- package/src/postgres/plan/diff.ts +45 -0
- package/src/postgres/plan/normalize.ts +153 -2
- package/src/postgres/plan/rules.ts +21 -0
- package/src/postgres/plan/schema.ts +6 -4
- package/src/postgres/testing/roundtrip-schema.ts +19 -1
- package/src/postgres.ts +19 -0
- package/src/skill-defs.ts +1 -1
- package/src/skills/chant-sql-postgres.md +7 -3
- package/src/skills/chant-sql.md +3 -1
- package/src/unknown-clauses.test.ts +2 -1
- package/src/validate.ts +8 -0
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"dialect": "postgres",
|
|
3
3
|
"kinds": [
|
|
4
4
|
{ "command": "CREATE ACCESS METHOD", "kind": "access method", "status": "refused", "reason": "no tag declares an access method; an extension usually installs one, and the extension is declared instead" },
|
|
5
|
-
{ "command": "CREATE AGGREGATE", "kind": "aggregate", "status": "
|
|
6
|
-
{ "command": "CREATE CAST", "kind": "cast", "status": "
|
|
7
|
-
{ "command": "CREATE COLLATION", "kind": "collation", "status": "
|
|
5
|
+
{ "command": "CREATE AGGREGATE", "kind": "aggregate", "status": "declared", "entity": "Postgres::Aggregate" },
|
|
6
|
+
{ "command": "CREATE CAST", "kind": "cast", "status": "declared", "entity": "Postgres::Cast", "note": "the database's, named by its two types; read where a type or its function is in scope" },
|
|
7
|
+
{ "command": "CREATE COLLATION", "kind": "collation", "status": "declared", "entity": "Postgres::Collation" },
|
|
8
8
|
{ "command": "CREATE CONVERSION", "kind": "conversion", "status": "refused", "reason": "no tag declares an encoding conversion" },
|
|
9
9
|
{ "command": "CREATE DATABASE", "kind": "database", "status": "out-of-scope", "reason": "a project's schema lives in one database, which the environment provides (sql.profiles.<env>)" },
|
|
10
10
|
{ "command": "CREATE DOMAIN", "kind": "domain", "status": "declared", "entity": "Postgres::Domain" },
|
|
11
|
-
{ "command": "CREATE EVENT TRIGGER", "kind": "event trigger", "status": "
|
|
11
|
+
{ "command": "CREATE EVENT TRIGGER", "kind": "event trigger", "status": "declared", "entity": "Postgres::EventTrigger", "note": "the database's, not a schema's; creating one takes a superuser" },
|
|
12
12
|
{ "command": "CREATE EXTENSION", "kind": "extension", "status": "declared", "entity": "Postgres::Extension" },
|
|
13
13
|
{ "command": "CREATE FOREIGN DATA WRAPPER", "kind": "foreign data wrapper", "status": "refused", "reason": "no tag declares a foreign data wrapper yet; one an extension installs comes with the extension" },
|
|
14
14
|
{ "command": "CREATE FOREIGN TABLE", "kind": "foreign table", "status": "refused", "reason": "no tag declares a foreign table yet" },
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
{ "command": "CREATE TRANSFORM", "kind": "transform", "status": "refused", "reason": "no tag declares a transform; an extension installs one" },
|
|
42
42
|
{ "command": "CREATE TRIGGER", "kind": "trigger", "status": "declared", "entity": "Postgres::Trigger" },
|
|
43
43
|
{ "command": "CREATE TYPE", "form": "AS ENUM", "match": "\\bAS\\s+ENUM\\b", "kind": "enum type", "status": "declared", "entity": "Postgres::Enum" },
|
|
44
|
-
{ "command": "CREATE TYPE", "form": "AS (...)", "match": "\\bAS\\s*\\(", "kind": "composite type", "status": "
|
|
45
|
-
{ "command": "CREATE TYPE", "form": "AS RANGE", "match": "\\bAS\\s+RANGE\\b", "kind": "range type", "status": "
|
|
44
|
+
{ "command": "CREATE TYPE", "form": "AS (...)", "match": "\\bAS\\s*\\(", "kind": "composite type", "status": "declared", "entity": "Postgres::CompositeType" },
|
|
45
|
+
{ "command": "CREATE TYPE", "form": "AS RANGE", "match": "\\bAS\\s+RANGE\\b", "kind": "range type", "status": "declared", "entity": "Postgres::RangeType", "note": "its multirange type comes with it (MULTIRANGE_TYPE_NAME)" },
|
|
46
46
|
{ "command": "CREATE TYPE", "form": "INPUT, OUTPUT, or a shell type", "kind": "base type", "status": "refused", "reason": "no tag declares a base type; its input and output functions are C code an extension installs" },
|
|
47
47
|
{ "command": "CREATE USER", "kind": "user", "status": "declared", "entity": "Postgres::Role", "note": "an alias of CREATE ROLE ... LOGIN" },
|
|
48
48
|
{ "command": "CREATE USER MAPPING", "kind": "user mapping", "status": "refused", "reason": "no tag declares a user mapping yet" },
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* A file of ClickHouse DDL as the objects it declares: one per `CREATE
|
|
3
3
|
* DATABASE`, `TABLE`, `VIEW`, `MATERIALIZED VIEW`, `DICTIONARY` or `FUNCTION`, as `chant import
|
|
4
4
|
* <file>.sql` reads them, and one per `CREATE USER`, `CREATE ROLE`, `CREATE
|
|
5
|
-
* ROW POLICY`
|
|
5
|
+
* ROW POLICY`, `CREATE QUOTA`, `CREATE SETTINGS PROFILE` (#3911) and `GRANT`
|
|
6
|
+
* (#3711), each read by its tag, so what the tag
|
|
6
7
|
* refuses (`IDENTIFIED BY`, a `REVOKE`) is refused with the tag's message.
|
|
7
8
|
* Any other statement, and any statement the parser refuses, is a problem
|
|
8
9
|
* naming it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clickhouse.d.ts","sourceRoot":"","sources":["../../src/files/clickhouse.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"clickhouse.d.ts","sourceRoot":"","sources":["../../src/files/clickhouse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAO9D,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAA8F,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvJ,KAAK,GAAG,GAAG,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,KAAK,UAAU,CAAC;AA2D/E,4CAA4C;AAC5C,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAG3D;AAED,sHAAsH;AACtH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,cAAc,GAAG,QAAQ,CAAC,CAwCtH"}
|
package/dist/files/postgres.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* With `schema`, the names the DDL leaves unqualified are qualified with it,
|
|
17
17
|
* as an ORM's connection would: an object's own name, an index's, trigger's
|
|
18
18
|
* or policy's table, a foreign key's table, a comment's target, and a column
|
|
19
|
-
* type naming an enum or domain the file creates.
|
|
19
|
+
* type naming an enum, composite, range or domain type the file creates.
|
|
20
20
|
*/
|
|
21
21
|
import type { Declarable } from "@intentius/chant/declarable";
|
|
22
22
|
import type { ImportedPgObject } from "../postgres/import/ir.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ export { sqlPlugin } from "./plugin.js";
|
|
|
2
2
|
export { sqlSerializer } from "./serializer.js";
|
|
3
3
|
export { SQL_DIALECTS, type SqlDialect } from "./dialects.js";
|
|
4
4
|
export { sqlConfigSchema, type SqlConfig } from "./config.js";
|
|
5
|
-
export { database, table, view, dictionary, user, role, policy, grant, literal } from "./clickhouse/entities.js";
|
|
6
|
-
export { schema, index, sequence, type, domain, extension, func, procedure, trigger } from "./postgres/entities.js";
|
|
5
|
+
export { database, table, view, dictionary, user, role, policy, quota, settingsProfile, grant, literal } from "./clickhouse/entities.js";
|
|
6
|
+
export { schema, index, sequence, type, domain, extension, func, procedure, aggregate, trigger, eventTrigger, collation, cast } from "./postgres/entities.js";
|
|
7
7
|
export { diffStatements, renderStatements, type DiffStatementsOptions, type ManualStep, type MigrationStep, type OpStep, type SchemaStatements, type StatementChange, type StatementStep, type StepObject, } from "./migration-statements.js";
|
|
8
8
|
export { readSqlFile, sqlFileDeclarations, sqlFileEntities, sqlFileOf, SqlFileError, type SqlFileObject, type SqlFileOptions, type SqlFileSource, } from "./sql-files.js";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAM3D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAM3D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAMtI,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAI3J,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,UAAU,GAChB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC"}
|
package/dist/integrity.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
5
|
-
"meta.json": "
|
|
4
|
+
"manifest.json": "261d72f2373ca341b6c922bcabe436354b7e3a6f34807b9da0d37df974d53599",
|
|
5
|
+
"meta.json": "59ca03876cce0d293e15a7f0a90ef7f250d133e46773c73fedede4a2ec792119",
|
|
6
6
|
"types/index.d.ts": "0286ebb367773e84c76818b0f69cb14cff8328fd2f8c65ed87563c8d5815458c",
|
|
7
|
-
"rules/postgres-templates.ts": "
|
|
8
|
-
"rules/sqlch001.ts": "
|
|
7
|
+
"rules/postgres-templates.ts": "082da542239ab9f9627026972281102a61ca269cb79e2514f402dfc400ccdcde",
|
|
8
|
+
"rules/sqlch001.ts": "b6dcf779edc596a953e3b4eb2dda5f6e70c1ac56b262f7499f9cb6876ecc1cf9",
|
|
9
9
|
"rules/sqlch002.ts": "d866298167d3f2f7b39bddd28cfbb4a761281a2816d6c21db19b86b32434737a",
|
|
10
10
|
"rules/sqlch003.ts": "955bd6331af0cf7b4f7cd1656d809b9697a8cc91bb179c38a4bbd086c232354e",
|
|
11
11
|
"rules/sqlch004.ts": "d97a5c0faaa22e8f0803b2d3cd608df63007b8ddd2edeca883822f8c537fcacf",
|
|
12
|
-
"rules/sqlpg001.ts": "
|
|
12
|
+
"rules/sqlpg001.ts": "c114d5745c7957e30c05bea668abc47b76c2568d529bd5efdea6b760e2f135c0",
|
|
13
13
|
"rules/sqlpg002.ts": "54ef045f45df77d2f07eae03417e84a5ce441ac90dc70e0a35f2b596d2104e28",
|
|
14
14
|
"rules/sqlpg003.ts": "6f4903f9fdd3eb87bd4db3ad7e8fa0320db20f719ead7685a03cf7da677a7183",
|
|
15
15
|
"rules/sqlpg004.ts": "68e4eaaa455f155d6dfe779eb01d7f134d856ab5db7cf45e2eb110ed7147b580",
|
|
16
16
|
"rules/sqlpg005.ts": "14bdd081d73826f94e358e52e672776aae81533b98fe09ce7ee4cbb86e241df9",
|
|
17
|
-
"rules/templates.ts": "
|
|
17
|
+
"rules/templates.ts": "9e6b434694231c3275ca23b491bfdc207b8dbc80b30ffe119fe89d1fb6b12389",
|
|
18
18
|
"rules/typed-names.ts": "fbd5037dc10987611ad4dfb71ae97102b2bb8916c693033b923c6c0201280419",
|
|
19
19
|
"rules/audit-entries.ts": "2339bc445687a4037652ffd300e3a230866b8abfd91f08a2ba831179cf646424",
|
|
20
20
|
"rules/clickhouse-helpers.ts": "7c635d10cd2049b72a88596a60e5ba188eab69e233fb74f77dde100f08fba1ca",
|
|
21
21
|
"rules/clickhouse-type-check.ts": "75396cd5aef4ae09d6f7dea92924b0867e5c9182bbf918ade4d9b42823e54538",
|
|
22
22
|
"rules/postgres-audit-entries.ts": "30887efb76971b6db629807e583576e875d939c906eada0f260b90a5eec646b8",
|
|
23
23
|
"rules/postgres-helpers.ts": "b7a246cbb42161691aea52dda6fffd41da293892812023f0ffcfa4f722e596bd",
|
|
24
|
-
"rules/postgres-names.ts": "
|
|
24
|
+
"rules/postgres-names.ts": "1003c61a99b06284df65f93158f6a43a55b7e6401ad9a2cd5059c7564344254f",
|
|
25
25
|
"rules/sql-helpers.ts": "36b2d8ff9d5ecc741a9edcea055829137cb66e1e73fd2ff8918a7f56c5413574",
|
|
26
|
-
"rules/sql101.ts": "
|
|
26
|
+
"rules/sql101.ts": "6d8405355fb3f679ecd729c9fb020d3fa9820b2e2f7e83c4850c266f37ed5165",
|
|
27
27
|
"rules/sql102.ts": "7898a292ef801316ba1232001fcaa2f9a11d62d21cf25a176f0af19e409bb4fa",
|
|
28
28
|
"rules/sqlch101.ts": "6ffb9007e4f9b014946b7a98733b77b7da3501e8713bb27b34553823dbd58d89",
|
|
29
29
|
"rules/sqlch102.ts": "2ec6fd0b4922b53f9a37653ff4af562efd3a40e0adb8e9f82ffac0e120f2f407",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"rules/sqlpg110.ts": "90284722b2864db3be30fc86dbcbca8fb80db53c32745b5cafffdd1f6dc7d77d",
|
|
65
65
|
"rules/sqlpg111.ts": "078a2ea7e0bee31b99c685b26a3071ea1558a108c137b8f1c12a2718f3bb0624",
|
|
66
66
|
"rules/sqlpg112.ts": "c194f7c77ff94da0fc133f91ffe5086d3814f2c25d03afc567c233970c658042",
|
|
67
|
-
"rules/sqlpg113.ts": "
|
|
67
|
+
"rules/sqlpg113.ts": "5ca641e8ea1fe7a80c314233f0df4e452317136f4a93a08b9394d0b7da3ba06b",
|
|
68
68
|
"rules/sqlpg114.ts": "bf45659081f6039ae0cb781a327a8f3eed55b91fc72d64e3894516440fa73dbd",
|
|
69
69
|
"rules/sqlpg115.ts": "ba3df2715edbd643436bec08d52311b8beae9ae318899ace4cdf2b62949ff202",
|
|
70
70
|
"rules/sqlpg116.ts": "7a47846aa3ea1cfd3857b76476a5daeb6bfaefe86ea2cb33de1debbaf9b21afe",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"rules/sqlpg125.ts": "cc7411c57c525613dc720ba00e986bbc4e5a84b8b0bcfa7a6ce0d058f039f025",
|
|
80
80
|
"rules/sqlpg126.ts": "d57b82a5842273876510131d67bf4418cbd61eff821e245edebc644dafd502bb"
|
|
81
81
|
},
|
|
82
|
-
"composite": "
|
|
82
|
+
"composite": "8d8fa52bd659ced8ca17a0962c03331590c1775e4f8989a2c684598487598df7"
|
|
83
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres-names.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/postgres-names.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAMzE,OAAO,EAAyC,KAAK,iBAAiB,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC9G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AA6BlD,4EAA4E;AAC5E,eAAO,MAAM,UAAU,GAAI,WAAW,MAAM,KAAG,MAAM,GAAG,SAA6C,CAAC;AAEtG,8DAA8D;AAC9D,eAAO,MAAM,YAAY,GAAI,WAAW,MAAM,qEAA6C,CAAC;AAI5F,uFAAuF;AACvF,wBAAgB,UA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E,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAM9G;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,cAAoB,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAgBjI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sql101.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/sql101.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sql101.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/sql101.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,kCAAkC,CAAC;AA2B5F;;;;;GAKG;AACH,eAAO,MAAM,MAAM,EAAE,cA6BpB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LintRule } from "@intentius/chant/lint/rule";
|
|
2
2
|
/**
|
|
3
|
-
* SQLCH001: the DDL in a ClickHouse template (`database`, `table`, `view`, `dictionary`, `func`, `user`, `role`, `policy`, `grant`) does not parse, or holds another statement than its tag.
|
|
3
|
+
* SQLCH001: the DDL in a ClickHouse template (`database`, `table`, `view`, `dictionary`, `func`, `user`, `role`, `policy`, `quota`, `settingsProfile`, `grant`) does not parse, or holds another statement than its tag.
|
|
4
4
|
*
|
|
5
5
|
* The same parse runs when the build calls the tag, and fails the build there.
|
|
6
6
|
* This rule reports it in the editor and in `chant lint`, at the token, before
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlch001.d.ts","sourceRoot":"","sources":["../../../src/lint/rules/sqlch001.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA+B,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"sqlch001.d.ts","sourceRoot":"","sources":["../../../src/lint/rules/sqlch001.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA+B,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAoBxF;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,EAAE,QAoDtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlpg001.d.ts","sourceRoot":"","sources":["../../../src/lint/rules/sqlpg001.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA+B,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"sqlpg001.d.ts","sourceRoot":"","sources":["../../../src/lint/rules/sqlpg001.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA+B,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAUxF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,EAAE,QAuDtB,CAAC"}
|
|
@@ -10,7 +10,7 @@ import type { ts } from "@intentius/chant/lint/typescript";
|
|
|
10
10
|
import { type Token } from "../../clickhouse/tokens.js";
|
|
11
11
|
import { type FoundTemplate as SqlFoundTemplate, type TemplateSource } from "../../core/find-templates.js";
|
|
12
12
|
export { templatePosition, tokenPosition } from "../../core/find-templates.js";
|
|
13
|
-
export type SqlTag = "database" | "table" | "view" | "dictionary" | "func" | "user" | "role" | "policy" | "grant";
|
|
13
|
+
export type SqlTag = "database" | "table" | "view" | "dictionary" | "func" | "user" | "role" | "policy" | "quota" | "settingsProfile" | "grant";
|
|
14
14
|
/**
|
|
15
15
|
* The ClickHouse tags, by the modules they are imported from. The package
|
|
16
16
|
* root still exports them, so it counts as ClickHouse too.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/lint/rules/templates.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OA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AACrE,wBAAgB,aAAa,CAAC,GAAG,EAAE,SAAS,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,GAAG,MAAM,CAQ7E;AAID,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,WAAW,CAAC;IACjB,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,kFAAkF;IAClF,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjD;AAWD,qGAAqG;AACrG,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,SAAY,GAAG,gBAAgB,EAAE,CAsE9F"}
|
package/dist/manifest.json
CHANGED
package/dist/meta.json
CHANGED
|
@@ -49,6 +49,16 @@
|
|
|
49
49
|
"kind": "resource",
|
|
50
50
|
"lexicon": "sql"
|
|
51
51
|
},
|
|
52
|
+
"Quota": {
|
|
53
|
+
"resourceType": "ClickHouse::Quota",
|
|
54
|
+
"kind": "resource",
|
|
55
|
+
"lexicon": "sql"
|
|
56
|
+
},
|
|
57
|
+
"SettingsProfile": {
|
|
58
|
+
"resourceType": "ClickHouse::SettingsProfile",
|
|
59
|
+
"kind": "resource",
|
|
60
|
+
"lexicon": "sql"
|
|
61
|
+
},
|
|
52
62
|
"PostgresSchema": {
|
|
53
63
|
"resourceType": "Postgres::Schema",
|
|
54
64
|
"kind": "resource",
|
|
@@ -84,11 +94,41 @@
|
|
|
84
94
|
"kind": "resource",
|
|
85
95
|
"lexicon": "sql"
|
|
86
96
|
},
|
|
97
|
+
"PostgresCompositeType": {
|
|
98
|
+
"resourceType": "Postgres::CompositeType",
|
|
99
|
+
"kind": "resource",
|
|
100
|
+
"lexicon": "sql"
|
|
101
|
+
},
|
|
102
|
+
"PostgresRangeType": {
|
|
103
|
+
"resourceType": "Postgres::RangeType",
|
|
104
|
+
"kind": "resource",
|
|
105
|
+
"lexicon": "sql"
|
|
106
|
+
},
|
|
87
107
|
"PostgresDomain": {
|
|
88
108
|
"resourceType": "Postgres::Domain",
|
|
89
109
|
"kind": "resource",
|
|
90
110
|
"lexicon": "sql"
|
|
91
111
|
},
|
|
112
|
+
"PostgresAggregate": {
|
|
113
|
+
"resourceType": "Postgres::Aggregate",
|
|
114
|
+
"kind": "resource",
|
|
115
|
+
"lexicon": "sql"
|
|
116
|
+
},
|
|
117
|
+
"PostgresCollation": {
|
|
118
|
+
"resourceType": "Postgres::Collation",
|
|
119
|
+
"kind": "resource",
|
|
120
|
+
"lexicon": "sql"
|
|
121
|
+
},
|
|
122
|
+
"PostgresCast": {
|
|
123
|
+
"resourceType": "Postgres::Cast",
|
|
124
|
+
"kind": "resource",
|
|
125
|
+
"lexicon": "sql"
|
|
126
|
+
},
|
|
127
|
+
"PostgresEventTrigger": {
|
|
128
|
+
"resourceType": "Postgres::EventTrigger",
|
|
129
|
+
"kind": "resource",
|
|
130
|
+
"lexicon": "sql"
|
|
131
|
+
},
|
|
92
132
|
"PostgresExtension": {
|
|
93
133
|
"resourceType": "Postgres::Extension",
|
|
94
134
|
"kind": "resource",
|
package/dist/okf/index.md
CHANGED
|
@@ -9,9 +9,14 @@ okf_version: '0.2'
|
|
|
9
9
|
* [Function](/types/Function.md) - ClickHouse::Function
|
|
10
10
|
* [Grant](/types/Grant.md) - ClickHouse::Grant
|
|
11
11
|
* [MaterializedView](/types/MaterializedView.md) - ClickHouse::MaterializedView
|
|
12
|
+
* [PostgresAggregate](/types/PostgresAggregate.md) - Postgres::Aggregate
|
|
13
|
+
* [PostgresCast](/types/PostgresCast.md) - Postgres::Cast
|
|
14
|
+
* [PostgresCollation](/types/PostgresCollation.md) - Postgres::Collation
|
|
15
|
+
* [PostgresCompositeType](/types/PostgresCompositeType.md) - Postgres::CompositeType
|
|
12
16
|
* [PostgresDefaultPrivileges](/types/PostgresDefaultPrivileges.md) - Postgres::DefaultPrivileges
|
|
13
17
|
* [PostgresDomain](/types/PostgresDomain.md) - Postgres::Domain
|
|
14
18
|
* [PostgresEnum](/types/PostgresEnum.md) - Postgres::Enum
|
|
19
|
+
* [PostgresEventTrigger](/types/PostgresEventTrigger.md) - Postgres::EventTrigger
|
|
15
20
|
* [PostgresExtension](/types/PostgresExtension.md) - Postgres::Extension
|
|
16
21
|
* [PostgresFunction](/types/PostgresFunction.md) - Postgres::Function
|
|
17
22
|
* [PostgresGrant](/types/PostgresGrant.md) - Postgres::Grant
|
|
@@ -19,14 +24,17 @@ okf_version: '0.2'
|
|
|
19
24
|
* [PostgresMaterializedView](/types/PostgresMaterializedView.md) - Postgres::MaterializedView
|
|
20
25
|
* [PostgresPolicy](/types/PostgresPolicy.md) - Postgres::Policy
|
|
21
26
|
* [PostgresProcedure](/types/PostgresProcedure.md) - Postgres::Procedure
|
|
27
|
+
* [PostgresRangeType](/types/PostgresRangeType.md) - Postgres::RangeType
|
|
22
28
|
* [PostgresRole](/types/PostgresRole.md) - Postgres::Role
|
|
23
29
|
* [PostgresSchema](/types/PostgresSchema.md) - Postgres::Schema
|
|
24
30
|
* [PostgresSequence](/types/PostgresSequence.md) - Postgres::Sequence
|
|
25
31
|
* [PostgresTable](/types/PostgresTable.md) - Postgres::Table
|
|
26
32
|
* [PostgresTrigger](/types/PostgresTrigger.md) - Postgres::Trigger
|
|
27
33
|
* [PostgresView](/types/PostgresView.md) - Postgres::View
|
|
34
|
+
* [Quota](/types/Quota.md) - ClickHouse::Quota
|
|
28
35
|
* [Role](/types/Role.md) - ClickHouse::Role
|
|
29
36
|
* [RowPolicy](/types/RowPolicy.md) - ClickHouse::RowPolicy
|
|
37
|
+
* [SettingsProfile](/types/SettingsProfile.md) - ClickHouse::SettingsProfile
|
|
30
38
|
* [Table](/types/Table.md) - ClickHouse::Table
|
|
31
39
|
* [User](/types/User.md) - ClickHouse::User
|
|
32
40
|
* [View](/types/View.md) - ClickHouse::View
|
|
@@ -35,7 +43,7 @@ okf_version: '0.2'
|
|
|
35
43
|
|
|
36
44
|
* [SQL101](/rules/SQL101.md) - Two exports declare the same object
|
|
37
45
|
* [SQL102](/rules/SQL102.md) - sql-types.d.ts differs from what the build declares
|
|
38
|
-
* [SQLCH001](/rules/SQLCH001.md) - the DDL in a ClickHouse template (`database`, `table`, `view`, `dictionary`, `func`, `user`, `role`, `policy`, `grant`) does not
|
|
46
|
+
* [SQLCH001](/rules/SQLCH001.md) - the DDL in a ClickHouse template (`database`, `table`, `view`, `dictionary`, `func`, `user`, `role`, `policy`, `quota`, `settingsProfile`, `grant`) does not...
|
|
39
47
|
* [SQLCH002](/rules/SQLCH002.md) - a `Nullable` column in a table's sort key or primary key.
|
|
40
48
|
* [SQLCH003](/rules/SQLCH003.md) - a column written as `${events.kind}` instead of `${events.columns.kind}`.
|
|
41
49
|
* [SQLCH004](/rules/SQLCH004.md) - a typed ClickHouse tag whose type argument does not name the
|
package/dist/okf/rules/SQL101.md
CHANGED
|
@@ -14,6 +14,7 @@ Two exports declare the same object
|
|
|
14
14
|
|
|
15
15
|
- [Function](/types/Function.md)
|
|
16
16
|
- [Grant](/types/Grant.md)
|
|
17
|
+
- [PostgresAggregate](/types/PostgresAggregate.md)
|
|
17
18
|
- [PostgresDefaultPrivileges](/types/PostgresDefaultPrivileges.md)
|
|
18
19
|
- [PostgresFunction](/types/PostgresFunction.md)
|
|
19
20
|
- [PostgresGrant](/types/PostgresGrant.md)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
type: lint-rule
|
|
3
3
|
title: SQLCH001
|
|
4
|
-
description: the DDL in a ClickHouse template (`database`, `table`, `view`, `dictionary`, `func`, `user`, `role`, `policy`, `grant`) does not parse, or holds another statement than
|
|
4
|
+
description: the DDL in a ClickHouse template (`database`, `table`, `view`, `dictionary`, `func`, `user`, `role`, `policy`, `quota`, `settingsProfile`, `grant`) does not parse, or holds another statement than i...
|
|
5
5
|
id: SQLCH001
|
|
6
6
|
severity: error
|
|
7
7
|
category: correctness
|
|
8
8
|
lexicon: sql
|
|
9
9
|
docs: https://intentius.io/chant/lexicons/sql/rules/
|
|
10
10
|
---
|
|
11
|
-
the DDL in a ClickHouse template (`database`, `table`, `view`, `dictionary`, `func`, `user`, `role`, `policy`, `grant`) does not parse, or holds another statement than its tag.
|
|
11
|
+
the DDL in a ClickHouse template (`database`, `table`, `view`, `dictionary`, `func`, `user`, `role`, `policy`, `quota`, `settingsProfile`, `grant`) does not parse, or holds another statement than its tag.
|
|
@@ -13,9 +13,11 @@ An object is in the public schema though the project declares schemas
|
|
|
13
13
|
## Applies to
|
|
14
14
|
|
|
15
15
|
- [MaterializedView](/types/MaterializedView.md)
|
|
16
|
+
- [PostgresCompositeType](/types/PostgresCompositeType.md)
|
|
16
17
|
- [PostgresDomain](/types/PostgresDomain.md)
|
|
17
18
|
- [PostgresEnum](/types/PostgresEnum.md)
|
|
18
19
|
- [PostgresMaterializedView](/types/PostgresMaterializedView.md)
|
|
20
|
+
- [PostgresRangeType](/types/PostgresRangeType.md)
|
|
19
21
|
- [PostgresSchema](/types/PostgresSchema.md)
|
|
20
22
|
- [PostgresSequence](/types/PostgresSequence.md)
|
|
21
23
|
- [PostgresTable](/types/PostgresTable.md)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: PostgresAggregate
|
|
4
|
+
description: sql resource type Postgres::Aggregate
|
|
5
|
+
name: PostgresAggregate
|
|
6
|
+
lexicon: sql
|
|
7
|
+
resource_type: Postgres::Aggregate
|
|
8
|
+
---
|
|
9
|
+
`Postgres::Aggregate`, a resource type of the sql lexicon.
|
|
10
|
+
|
|
11
|
+
## Governed by
|
|
12
|
+
|
|
13
|
+
- [SQL101](/rules/SQL101.md): Two exports declare the same object
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: PostgresCompositeType
|
|
4
|
+
description: sql resource type Postgres::CompositeType
|
|
5
|
+
name: PostgresCompositeType
|
|
6
|
+
lexicon: sql
|
|
7
|
+
resource_type: Postgres::CompositeType
|
|
8
|
+
---
|
|
9
|
+
`Postgres::CompositeType`, a resource type of the sql lexicon.
|
|
10
|
+
|
|
11
|
+
## Governed by
|
|
12
|
+
|
|
13
|
+
- [SQLPG113](/rules/SQLPG113.md): An object is in the public schema though the project declares schemas
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: PostgresEventTrigger
|
|
4
|
+
description: sql resource type Postgres::EventTrigger
|
|
5
|
+
name: PostgresEventTrigger
|
|
6
|
+
lexicon: sql
|
|
7
|
+
resource_type: Postgres::EventTrigger
|
|
8
|
+
---
|
|
9
|
+
`Postgres::EventTrigger`, a resource type of the sql lexicon.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: PostgresRangeType
|
|
4
|
+
description: sql resource type Postgres::RangeType
|
|
5
|
+
name: PostgresRangeType
|
|
6
|
+
lexicon: sql
|
|
7
|
+
resource_type: Postgres::RangeType
|
|
8
|
+
---
|
|
9
|
+
`Postgres::RangeType`, a resource type of the sql lexicon.
|
|
10
|
+
|
|
11
|
+
## Governed by
|
|
12
|
+
|
|
13
|
+
- [SQLPG113](/rules/SQLPG113.md): An object is in the public schema though the project declares schemas
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: SettingsProfile
|
|
4
|
+
description: sql resource type ClickHouse::SettingsProfile
|
|
5
|
+
name: SettingsProfile
|
|
6
|
+
lexicon: sql
|
|
7
|
+
resource_type: ClickHouse::SettingsProfile
|
|
8
|
+
---
|
|
9
|
+
`ClickHouse::SettingsProfile`, a resource type of the sql lexicon.
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAgB,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAwB5E,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAgB,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAwB5E,eAAO,MAAM,SAAS,EAAE,aAqPvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../src/postgres/apply/apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAiE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEtI,OAAO,EAAuE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC1H,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAMpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAA+B,KAAK,gBAAgB,EAAqC,MAAM,cAAc,CAAC;AAKrH,0EAA0E;AAC1E,MAAM,WAAW,qBAAqB;IACpC,0CAA0C;IAC1C,aAAa,E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EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,gFAAgF;IAChF,QAAQ,CAAC,EAAE,OAAO,cAAc,CAAC;IACjC,kEAAkE;IAClE,eAAe,CAAC,EAAE,OAAO,gBAAgB,CAAC;CAC3C;AAkCD;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,SAAS,gBAAgB,EAAE,EACrC,IAAI,GAAE,oBAAyB,GAC9B,OAAO,CAAC,oBAAoB,CAAC,CA+N/B"}
|
|
@@ -81,9 +81,10 @@ export declare const pgString: (value: string) => string;
|
|
|
81
81
|
/** `schema.name`, each part quoted where Postgres needs it. */
|
|
82
82
|
export declare const pgQualified: (schema: string | undefined, name: string) => string;
|
|
83
83
|
/**
|
|
84
|
-
* An object's name in a statement. A schema
|
|
85
|
-
* a routine is named with its
|
|
86
|
-
*
|
|
84
|
+
* An object's name in a statement. A schema, an extension and an event
|
|
85
|
+
* trigger have no schema; a routine or an aggregate is named with its
|
|
86
|
+
* parameter types (`app.f(integer,text)`), a trigger with its table
|
|
87
|
+
* (`touch ON app.users`), a cast by its types (`(app.money AS numeric)`).
|
|
87
88
|
*/
|
|
88
89
|
export declare const objectIdent: (o: {
|
|
89
90
|
kind: CanonicalKind;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statements.d.ts","sourceRoot":"","sources":["../../../src/postgres/apply/statements.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAA0B,KAAK,KAAK,EAAE,MAAM,WAAW,CAAC;AAG/D,OAAO,EAAyB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAuB,KAAK,aAAa,EAAE,KAAK,kB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