sqllens 1.1.0 → 1.2.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.
- package/README.md +2 -74
- package/THIRD-PARTY-NOTICES.md +50 -5
- package/dist/api.d.ts +5 -3
- package/dist/api.js +11 -4
- package/dist/bigquery/behavior.d.ts +2 -0
- package/dist/bigquery/behavior.js +20 -0
- package/dist/bigquery/dot-path.d.ts +0 -2
- package/dist/bigquery/dot-path.js +0 -1
- package/dist/bigquery/fold.d.ts +8 -0
- package/dist/bigquery/fold.js +39 -0
- package/dist/bigquery/index.d.ts +7 -0
- package/dist/bigquery/index.js +10 -0
- package/dist/{infer/bigquery.d.ts → bigquery/infer.d.ts} +2 -2
- package/dist/{infer/bigquery.js → bigquery/infer.js} +4 -3
- package/dist/bigquery/lower.js +35 -12
- package/dist/bigquery/signatures.generated.d.ts +6 -0
- package/dist/bigquery/signatures.generated.js +1068 -0
- package/dist/completion/atn-walk.d.ts +13 -2
- package/dist/completion/atn-walk.js +13 -10
- package/dist/completion/complete.d.ts +4 -3
- package/dist/completion/complete.js +101 -45
- package/dist/completion/jinja-slot.d.ts +24 -0
- package/dist/completion/jinja-slot.js +126 -0
- package/dist/completion/parser-factory.d.ts +13 -1
- package/dist/completion/parser-factory.js +12 -0
- package/dist/databricks/behavior.d.ts +2 -0
- package/dist/databricks/behavior.js +19 -0
- package/dist/databricks/fold.d.ts +8 -0
- package/dist/databricks/fold.js +27 -0
- package/dist/databricks/index.d.ts +7 -0
- package/dist/databricks/index.js +10 -0
- package/dist/databricks/infer.d.ts +6 -0
- package/dist/databricks/infer.js +638 -0
- package/dist/databricks/signatures.generated.d.ts +6 -0
- package/dist/databricks/signatures.generated.js +1745 -0
- package/dist/dialect-behavior/behavior.d.ts +26 -0
- package/dist/dialect-behavior/behavior.js +1 -0
- package/dist/dialect-behavior/carrier.d.ts +5 -0
- package/dist/dialect-behavior/carrier.js +5 -0
- package/dist/dialect-behavior/coerce-rules.d.ts +7 -0
- package/dist/dialect-behavior/coerce-rules.js +69 -0
- package/dist/dialect-behavior/public-fold.d.ts +6 -0
- package/dist/dialect-behavior/public-fold.js +9 -0
- package/dist/dialect-behavior/registry.d.ts +6 -0
- package/dist/dialect-behavior/registry.js +34 -0
- package/dist/dialect-symbols.js +16 -19
- package/dist/document/document.d.ts +1 -1
- package/dist/document/document.js +8 -7
- package/dist/duckdb/behavior.d.ts +2 -0
- package/dist/duckdb/behavior.js +21 -0
- package/dist/duckdb/fold.d.ts +8 -0
- package/dist/duckdb/fold.js +29 -0
- package/dist/duckdb/index.d.ts +7 -0
- package/dist/duckdb/index.js +10 -0
- package/dist/{infer/duckdb.d.ts → duckdb/infer.d.ts} +2 -2
- package/dist/{infer/duckdb.js → duckdb/infer.js} +4 -3
- package/dist/duckdb/lower.js +47 -15
- package/dist/duckdb/signatures.generated.d.ts +6 -0
- package/dist/duckdb/signatures.generated.js +1072 -0
- package/dist/generated/bigquery/GoogleSQLParser.js +0 -7060
- package/dist/generated/databricks/DatabricksParser.js +0 -4800
- package/dist/generated/duckdb/DuckdbParser.js +0 -9100
- package/dist/generated/minijinja/MinijinjaParser.js +0 -380
- package/dist/generated/mysql/MysqlParser.js +0 -6330
- package/dist/generated/postgres/PostgresParser.js +0 -8530
- package/dist/generated/redshift/RedshiftParser.js +0 -10970
- package/dist/generated/snowflake/SnowflakeParser.js +0 -7320
- package/dist/generated/sqlite/SqliteParser.js +0 -1150
- package/dist/generated/trino/TrinoParser.js +0 -3770
- package/dist/generated/tsql/TSqlParser.js +0 -8420
- package/dist/ident/fold.d.ts +24 -15
- package/dist/ident/fold.js +12 -194
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -8
- package/dist/infer/functions.d.ts +22 -11
- package/dist/infer/functions.js +26 -888
- package/dist/infer/infer.js +16 -14
- package/dist/infer/nullability.js +3 -4
- package/dist/infer/types.d.ts +1 -1
- package/dist/infer/types.js +7 -7
- package/dist/ir/ir.d.ts +26 -17
- package/dist/ir/span.js +0 -2
- package/dist/ir/walk.js +3 -3
- package/dist/lineage/hops.js +13 -10
- package/dist/lineage/lineage.js +10 -7
- package/dist/minijinja/apply-tags.d.ts +14 -7
- package/dist/minijinja/apply-tags.js +66 -121
- package/dist/minijinja/parse.js +5 -5
- package/dist/minijinja/tag-ast.d.ts +29 -36
- package/dist/minijinja/tag-ast.js +210 -90
- package/dist/mysql/behavior.d.ts +2 -0
- package/dist/mysql/behavior.js +21 -0
- package/dist/mysql/fold.d.ts +8 -0
- package/dist/mysql/fold.js +49 -0
- package/dist/mysql/index.d.ts +7 -0
- package/dist/mysql/index.js +10 -0
- package/dist/{infer/mysql.d.ts → mysql/infer.d.ts} +2 -2
- package/dist/{infer/mysql.js → mysql/infer.js} +3 -2
- package/dist/mysql/signatures.generated.d.ts +6 -0
- package/dist/mysql/signatures.generated.js +508 -0
- package/dist/postgres/behavior.d.ts +2 -0
- package/dist/postgres/behavior.js +19 -0
- package/dist/postgres/fold.d.ts +8 -0
- package/dist/postgres/fold.js +30 -0
- package/dist/postgres/index.d.ts +7 -0
- package/dist/postgres/index.js +10 -0
- package/dist/{infer/postgres.d.ts → postgres/infer.d.ts} +2 -2
- package/dist/{infer/postgres.js → postgres/infer.js} +4 -3
- package/dist/postgres/lower.js +2 -2
- package/dist/postgres/signatures.generated.d.ts +6 -0
- package/dist/postgres/signatures.generated.js +2973 -0
- package/dist/qualify/check-calls.js +80 -161
- package/dist/qualify/qualify.js +16 -14
- package/dist/qualify/schema-provider.js +2 -2
- package/dist/qualify/schema.js +3 -3
- package/dist/qualify/template-provider.d.ts +45 -12
- package/dist/qualify/template-provider.js +69 -38
- package/dist/redshift/behavior.d.ts +2 -0
- package/dist/redshift/behavior.js +19 -0
- package/dist/redshift/fold.d.ts +8 -0
- package/dist/redshift/fold.js +31 -0
- package/dist/redshift/index.d.ts +7 -0
- package/dist/redshift/index.js +10 -0
- package/dist/{infer/redshift.d.ts → redshift/infer.d.ts} +2 -2
- package/dist/{infer/redshift.js → redshift/infer.js} +4 -3
- package/dist/redshift/lower.js +2 -2
- package/dist/redshift/signatures.generated.d.ts +6 -0
- package/dist/redshift/signatures.generated.js +757 -0
- package/dist/references/references.js +17 -12
- package/dist/scope/like-pattern.d.ts +2 -0
- package/dist/scope/like-pattern.js +15 -0
- package/dist/scope/scope.d.ts +5 -5
- package/dist/scope/scope.js +48 -42
- package/dist/sema/resolve.js +17 -12
- package/dist/session.d.ts +2 -2
- package/dist/signature/signature.d.ts +14 -6
- package/dist/signature/signature.js +30 -22
- package/dist/signature/signatures.d.ts +14 -12
- package/dist/signature/signatures.js +42 -721
- package/dist/snowflake/behavior.d.ts +2 -0
- package/dist/snowflake/behavior.js +22 -0
- package/dist/snowflake/fold.d.ts +8 -0
- package/dist/snowflake/fold.js +25 -0
- package/dist/snowflake/index.d.ts +7 -0
- package/dist/snowflake/index.js +10 -0
- package/dist/{infer/snowflake.d.ts → snowflake/infer.d.ts} +2 -2
- package/dist/{infer/snowflake.js → snowflake/infer.js} +4 -3
- package/dist/snowflake/lower.js +59 -19
- package/dist/snowflake/signatures.generated.d.ts +6 -0
- package/dist/snowflake/signatures.generated.js +2080 -0
- package/dist/sqlite/behavior.d.ts +2 -0
- package/dist/sqlite/behavior.js +19 -0
- package/dist/sqlite/fold.d.ts +8 -0
- package/dist/sqlite/fold.js +41 -0
- package/dist/sqlite/index.d.ts +7 -0
- package/dist/sqlite/index.js +10 -0
- package/dist/{infer/sqlite.d.ts → sqlite/infer.d.ts} +2 -2
- package/dist/{infer/sqlite.js → sqlite/infer.js} +4 -3
- package/dist/sqlite/signatures.generated.d.ts +6 -0
- package/dist/sqlite/signatures.generated.js +277 -0
- package/dist/symbols/symbols.js +14 -12
- package/dist/trino/behavior.d.ts +2 -0
- package/dist/trino/behavior.js +21 -0
- package/dist/trino/fold.d.ts +8 -0
- package/dist/trino/fold.js +39 -0
- package/dist/trino/index.d.ts +7 -0
- package/dist/trino/index.js +10 -0
- package/dist/{infer/trino.d.ts → trino/infer.d.ts} +2 -2
- package/dist/{infer/trino.js → trino/infer.js} +4 -3
- package/dist/trino/lower.js +5 -5
- package/dist/trino/signatures.generated.d.ts +6 -0
- package/dist/trino/signatures.generated.js +968 -0
- package/dist/tsql/behavior.d.ts +2 -0
- package/dist/tsql/behavior.js +20 -0
- package/dist/tsql/fold.d.ts +8 -0
- package/dist/tsql/fold.js +34 -0
- package/dist/tsql/index.d.ts +7 -0
- package/dist/tsql/index.js +10 -0
- package/dist/tsql/infer.d.ts +16 -0
- package/dist/tsql/infer.js +289 -0
- package/dist/tsql/lower.js +4 -4
- package/dist/tsql/signatures.generated.d.ts +6 -0
- package/dist/tsql/signatures.generated.js +640 -0
- package/package.json +5 -10
- package/dist/generated/bigquery/GoogleSQLLexer.d.ts +0 -407
- package/dist/generated/bigquery/GoogleSQLParser.d.ts +0 -9558
- package/dist/generated/bigquery/GoogleSQLParserListener.d.ts +0 -7777
- package/dist/generated/bigquery/GoogleSQLParserListener.js +0 -7070
- package/dist/generated/databricks/DatabricksLexer.d.ts +0 -566
- package/dist/generated/databricks/DatabricksParser.d.ts +0 -7771
- package/dist/generated/databricks/DatabricksParserListener.d.ts +0 -5737
- package/dist/generated/databricks/DatabricksParserListener.js +0 -5256
- package/dist/generated/duckdb/DuckdbLexer.d.ts +0 -691
- package/dist/generated/duckdb/DuckdbParser.d.ts +0 -13932
- package/dist/generated/duckdb/DuckdbParserListener.d.ts +0 -10049
- package/dist/generated/duckdb/DuckdbParserListener.js +0 -9138
- package/dist/generated/minijinja/MinijinjaLexer.d.ts +0 -108
- package/dist/generated/minijinja/MinijinjaParser.d.ts +0 -604
- package/dist/generated/minijinja/MinijinjaParserListener.d.ts +0 -449
- package/dist/generated/minijinja/MinijinjaParserListener.js +0 -410
- package/dist/generated/mysql/MysqlLexer.d.ts +0 -1198
- package/dist/generated/mysql/MysqlParser.d.ts +0 -10992
- package/dist/generated/mysql/MysqlParserListener.d.ts +0 -7592
- package/dist/generated/mysql/MysqlParserListener.js +0 -6958
- package/dist/generated/postgres/PostgresLexer.d.ts +0 -663
- package/dist/generated/postgres/PostgresParser.d.ts +0 -12963
- package/dist/generated/postgres/PostgresParserListener.d.ts +0 -9408
- package/dist/generated/postgres/PostgresParserListener.js +0 -8554
- package/dist/generated/redshift/RedshiftLexer.d.ts +0 -954
- package/dist/generated/redshift/RedshiftParser.d.ts +0 -16939
- package/dist/generated/redshift/RedshiftParserListener.d.ts +0 -12092
- package/dist/generated/redshift/RedshiftParserListener.js +0 -10994
- package/dist/generated/snowflake/SnowflakeLexer.d.ts +0 -1046
- package/dist/generated/snowflake/SnowflakeParser.d.ts +0 -14196
- package/dist/generated/snowflake/SnowflakeParserListener.d.ts +0 -8063
- package/dist/generated/snowflake/SnowflakeParserListener.js +0 -7330
- package/dist/generated/sqlite/SqliteLexer.d.ts +0 -210
- package/dist/generated/sqlite/SqliteParser.d.ts +0 -2115
- package/dist/generated/sqlite/SqliteParserListener.d.ts +0 -1276
- package/dist/generated/sqlite/SqliteParserListener.js +0 -1160
- package/dist/generated/trino/TrinoLexer.d.ts +0 -381
- package/dist/generated/trino/TrinoParser.d.ts +0 -5340
- package/dist/generated/trino/TrinoParserListener.d.ts +0 -4704
- package/dist/generated/trino/TrinoParserListener.js +0 -4326
- package/dist/generated/tsql/TSqlLexer.d.ts +0 -1278
- package/dist/generated/tsql/TSqlParser.d.ts +0 -17267
- package/dist/generated/tsql/TSqlParserListener.d.ts +0 -9697
- package/dist/generated/tsql/TSqlParserListener.js +0 -8854
- package/dist/infer/dialect.d.ts +0 -21
- package/dist/infer/dialect.js +0 -100
- package/dist/infer/literals.d.ts +0 -6
- package/dist/infer/literals.js +0 -44
- package/dist/signature/generated/tsql.d.ts +0 -3
- package/dist/signature/generated/tsql.js +0 -260
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import * as antlr from "antlr4ng";
|
|
2
|
-
export declare class MinijinjaLexer extends antlr.Lexer {
|
|
3
|
-
static readonly RAW_TAG = 1;
|
|
4
|
-
static readonly EXPR_OPEN = 2;
|
|
5
|
-
static readonly STMT_OPEN = 3;
|
|
6
|
-
static readonly COMMENT_OPEN = 4;
|
|
7
|
-
static readonly RAW_TEXT = 5;
|
|
8
|
-
static readonly STRAY = 6;
|
|
9
|
-
static readonly EXPR_CLOSE = 7;
|
|
10
|
-
static readonly STMT_CLOSE = 8;
|
|
11
|
-
static readonly JWS = 9;
|
|
12
|
-
static readonly STRING = 10;
|
|
13
|
-
static readonly FLOAT = 11;
|
|
14
|
-
static readonly INT = 12;
|
|
15
|
-
static readonly TRUE = 13;
|
|
16
|
-
static readonly FALSE = 14;
|
|
17
|
-
static readonly NONE = 15;
|
|
18
|
-
static readonly AND = 16;
|
|
19
|
-
static readonly OR = 17;
|
|
20
|
-
static readonly NOT = 18;
|
|
21
|
-
static readonly IN = 19;
|
|
22
|
-
static readonly IS = 20;
|
|
23
|
-
static readonly IF = 21;
|
|
24
|
-
static readonly ELSE = 22;
|
|
25
|
-
static readonly ELIF = 23;
|
|
26
|
-
static readonly ENDIF = 24;
|
|
27
|
-
static readonly FOR = 25;
|
|
28
|
-
static readonly ENDFOR = 26;
|
|
29
|
-
static readonly SET = 27;
|
|
30
|
-
static readonly ENDSET = 28;
|
|
31
|
-
static readonly MACRO = 29;
|
|
32
|
-
static readonly ENDMACRO = 30;
|
|
33
|
-
static readonly CALL = 31;
|
|
34
|
-
static readonly ENDCALL = 32;
|
|
35
|
-
static readonly FILTER = 33;
|
|
36
|
-
static readonly ENDFILTER = 34;
|
|
37
|
-
static readonly BLOCK = 35;
|
|
38
|
-
static readonly ENDBLOCK = 36;
|
|
39
|
-
static readonly EXTENDS = 37;
|
|
40
|
-
static readonly INCLUDE = 38;
|
|
41
|
-
static readonly IMPORT = 39;
|
|
42
|
-
static readonly FROM = 40;
|
|
43
|
-
static readonly WITH = 41;
|
|
44
|
-
static readonly ENDWITH = 42;
|
|
45
|
-
static readonly AUTOESCAPE = 43;
|
|
46
|
-
static readonly ENDAUTOESCAPE = 44;
|
|
47
|
-
static readonly RAW = 45;
|
|
48
|
-
static readonly ENDRAW = 46;
|
|
49
|
-
static readonly DO = 47;
|
|
50
|
-
static readonly BREAK = 48;
|
|
51
|
-
static readonly CONTINUE = 49;
|
|
52
|
-
static readonly AS = 50;
|
|
53
|
-
static readonly ID = 51;
|
|
54
|
-
static readonly POW = 52;
|
|
55
|
-
static readonly STAR = 53;
|
|
56
|
-
static readonly DSLASH = 54;
|
|
57
|
-
static readonly SLASH = 55;
|
|
58
|
-
static readonly PLUS = 56;
|
|
59
|
-
static readonly MINUS = 57;
|
|
60
|
-
static readonly PERCENT = 58;
|
|
61
|
-
static readonly EQ = 59;
|
|
62
|
-
static readonly NE = 60;
|
|
63
|
-
static readonly LE = 61;
|
|
64
|
-
static readonly GE = 62;
|
|
65
|
-
static readonly LT = 63;
|
|
66
|
-
static readonly GT = 64;
|
|
67
|
-
static readonly ASSIGN = 65;
|
|
68
|
-
static readonly LPAREN = 66;
|
|
69
|
-
static readonly RPAREN = 67;
|
|
70
|
-
static readonly LBRACK = 68;
|
|
71
|
-
static readonly RBRACK = 69;
|
|
72
|
-
static readonly LBRACE = 70;
|
|
73
|
-
static readonly RBRACE = 71;
|
|
74
|
-
static readonly COMMA = 72;
|
|
75
|
-
static readonly COLON = 73;
|
|
76
|
-
static readonly DOT = 74;
|
|
77
|
-
static readonly PIPE = 75;
|
|
78
|
-
static readonly TILDE = 76;
|
|
79
|
-
static readonly MINIJINJA_ANY = 77;
|
|
80
|
-
static readonly COMMENT_CLOSE = 78;
|
|
81
|
-
static readonly COMMENT_TEXT = 79;
|
|
82
|
-
static readonly COMMENT_ANY = 80;
|
|
83
|
-
static readonly ENDRAW_TAG = 81;
|
|
84
|
-
static readonly RAW_BODY = 82;
|
|
85
|
-
static readonly RAW_BODY_STRAY = 83;
|
|
86
|
-
static readonly Minijinja = 1;
|
|
87
|
-
static readonly Comment = 2;
|
|
88
|
-
static readonly RawBody = 3;
|
|
89
|
-
static readonly channelNames: string[];
|
|
90
|
-
static readonly literalNames: (string | null)[];
|
|
91
|
-
static readonly symbolicNames: (string | null)[];
|
|
92
|
-
static readonly modeNames: string[];
|
|
93
|
-
static readonly ruleNames: string[];
|
|
94
|
-
constructor(input: antlr.CharStream);
|
|
95
|
-
get grammarFileName(): string;
|
|
96
|
-
get literalNames(): (string | null)[];
|
|
97
|
-
get symbolicNames(): (string | null)[];
|
|
98
|
-
get ruleNames(): string[];
|
|
99
|
-
get serializedATN(): number[];
|
|
100
|
-
get channelNames(): string[];
|
|
101
|
-
get modeNames(): string[];
|
|
102
|
-
static readonly _serializedATN: number[];
|
|
103
|
-
private static __ATN;
|
|
104
|
-
static get _ATN(): antlr.ATN;
|
|
105
|
-
private static readonly vocabulary;
|
|
106
|
-
get vocabulary(): antlr.Vocabulary;
|
|
107
|
-
private static readonly decisionsToDFA;
|
|
108
|
-
}
|