bq2cst 1.0.1 → 1.0.3
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/bq2cst.d.ts +24 -22
- package/bq2cst_bg.wasm +0 -0
- package/package.json +1 -1
package/bq2cst.d.ts
CHANGED
|
@@ -208,8 +208,8 @@ export type Expr = BaseNode & {
|
|
|
208
208
|
export type FromItemExpr = Expr & {
|
|
209
209
|
children: {
|
|
210
210
|
with_offset: NodeChild;
|
|
211
|
-
pivot?:
|
|
212
|
-
unpivot?:
|
|
211
|
+
pivot?: { Node: PivotOperator };
|
|
212
|
+
unpivot?: { Node: UnpivotOperator };
|
|
213
213
|
match_recognize?: NodeChild;
|
|
214
214
|
};
|
|
215
215
|
};
|
|
@@ -238,6 +238,7 @@ export type XXXStatement = BaseNode & {
|
|
|
238
238
|
};
|
|
239
239
|
|
|
240
240
|
export type PipeOperator = BaseNode & {
|
|
241
|
+
token: Token;
|
|
241
242
|
children: {
|
|
242
243
|
keywords?: NodeChild;
|
|
243
244
|
exprs?: NodeVecChild;
|
|
@@ -446,8 +447,8 @@ export type AssertStatement = XXXStatement & {
|
|
|
446
447
|
export type Asterisk = Expr & {
|
|
447
448
|
node_type: "Asterisk";
|
|
448
449
|
children: {
|
|
449
|
-
except?:
|
|
450
|
-
replace?:
|
|
450
|
+
except?: { Node: KeywordWithGroupedXXX & UnknownNode };
|
|
451
|
+
replace?: { Node: KeywordWithGroupedXXX & UnknownNode };
|
|
451
452
|
order: undefined;
|
|
452
453
|
null_order: undefined;
|
|
453
454
|
};
|
|
@@ -908,7 +909,7 @@ export type ForSystemTimeAsOfClause = BaseNode & {
|
|
|
908
909
|
export type FromStatement = XXXStatement & {
|
|
909
910
|
node_type: "FromStatement";
|
|
910
911
|
children: {
|
|
911
|
-
with?:
|
|
912
|
+
with?: { Node: WithClause };
|
|
912
913
|
expr: NodeChild;
|
|
913
914
|
};
|
|
914
915
|
};
|
|
@@ -938,14 +939,14 @@ export type GroupByExprs = BaseNode & {
|
|
|
938
939
|
children: {
|
|
939
940
|
by: NodeChild;
|
|
940
941
|
how?: NodeVecChild;
|
|
941
|
-
exprs?: { NodeVec: Expr
|
|
942
|
+
exprs?: { NodeVec: (Expr & UnknownNode)[] };
|
|
942
943
|
};
|
|
943
944
|
};
|
|
944
945
|
|
|
945
946
|
export type GroupedExpr = FromItemExpr & {
|
|
946
947
|
node_type: "GroupedExpr";
|
|
947
948
|
children: {
|
|
948
|
-
expr:
|
|
949
|
+
expr: { Node: Expr & UnknownNode };
|
|
949
950
|
rparen: NodeChild;
|
|
950
951
|
};
|
|
951
952
|
};
|
|
@@ -954,7 +955,8 @@ export type GroupedExprs = BaseNode & {
|
|
|
954
955
|
token: Token;
|
|
955
956
|
node_type: "GroupedExprs";
|
|
956
957
|
children: {
|
|
957
|
-
|
|
958
|
+
// NOTE: contains GroupedExprs in UnpivotConfig. it's a little inconsistent...
|
|
959
|
+
exprs?: { NodeVec: (Expr & UnknownNode)[] };
|
|
958
960
|
rparen: NodeChild;
|
|
959
961
|
// only in UNPIVOT operator
|
|
960
962
|
as?: NodeChild;
|
|
@@ -1120,7 +1122,7 @@ export type KeywordSequence = BaseNode & {
|
|
|
1120
1122
|
export type KeywordWithExpr = BaseNode & {
|
|
1121
1123
|
node_type: "KeywordWithExpr";
|
|
1122
1124
|
children: {
|
|
1123
|
-
expr:
|
|
1125
|
+
expr: { Node: Expr & UnknownNode };
|
|
1124
1126
|
};
|
|
1125
1127
|
};
|
|
1126
1128
|
|
|
@@ -1330,7 +1332,7 @@ export type PivotPipeOperator = PipeOperator & {
|
|
|
1330
1332
|
node_type: "PivotPipeOperator";
|
|
1331
1333
|
children: {
|
|
1332
1334
|
exprs: undefined;
|
|
1333
|
-
config:
|
|
1335
|
+
config: { Node: PivotConfig & UnknownNode };
|
|
1334
1336
|
as?: NodeChild;
|
|
1335
1337
|
alias?: NodeChild;
|
|
1336
1338
|
};
|
|
@@ -1340,7 +1342,7 @@ export type PivotOperator = BaseNode & {
|
|
|
1340
1342
|
token: Token;
|
|
1341
1343
|
node_type: "PivotOperator";
|
|
1342
1344
|
children: {
|
|
1343
|
-
config:
|
|
1345
|
+
config: { Node: PivotConfig & UnknownNode };
|
|
1344
1346
|
as?: NodeChild;
|
|
1345
1347
|
alias?: NodeChild;
|
|
1346
1348
|
};
|
|
@@ -1350,9 +1352,9 @@ export type PivotConfig = BaseNode & {
|
|
|
1350
1352
|
token: Token;
|
|
1351
1353
|
node_type: "PivotConfig";
|
|
1352
1354
|
children: {
|
|
1353
|
-
exprs:
|
|
1354
|
-
for:
|
|
1355
|
-
in:
|
|
1355
|
+
exprs: { NodeVec: (Expr & UnknownNode)[] };
|
|
1356
|
+
for: { Node: KeywordWithExpr };
|
|
1357
|
+
in: { Node: KeywordWithGroupedXXX };
|
|
1356
1358
|
rparen: NodeChild;
|
|
1357
1359
|
};
|
|
1358
1360
|
};
|
|
@@ -1516,7 +1518,7 @@ export type TemplateExpr = IdentifierGeneral & {
|
|
|
1516
1518
|
export type TemplateExprEnd = BaseNode & {
|
|
1517
1519
|
token: Token;
|
|
1518
1520
|
node_type: "TemplateExprEnd";
|
|
1519
|
-
children: {}
|
|
1521
|
+
children: {};
|
|
1520
1522
|
};
|
|
1521
1523
|
|
|
1522
1524
|
export type TemplateExprContinue = BaseNode & {
|
|
@@ -1524,7 +1526,7 @@ export type TemplateExprContinue = BaseNode & {
|
|
|
1524
1526
|
node_type: "TemplateExprContinue";
|
|
1525
1527
|
children: {
|
|
1526
1528
|
exprs: NodeVecChild;
|
|
1527
|
-
}
|
|
1529
|
+
};
|
|
1528
1530
|
};
|
|
1529
1531
|
|
|
1530
1532
|
export type TemplateExprStart = FromItemExpr & {
|
|
@@ -1534,7 +1536,7 @@ export type TemplateExprStart = FromItemExpr & {
|
|
|
1534
1536
|
exprs: NodeVecChild;
|
|
1535
1537
|
continues: NodeVecChild;
|
|
1536
1538
|
end: NodeChild;
|
|
1537
|
-
}
|
|
1539
|
+
};
|
|
1538
1540
|
};
|
|
1539
1541
|
|
|
1540
1542
|
export type TransactionStatement = XXXStatement & {
|
|
@@ -1621,8 +1623,8 @@ export type UnpivotConfig = BaseNode & {
|
|
|
1621
1623
|
node_type: "UnpivotConfig";
|
|
1622
1624
|
children: {
|
|
1623
1625
|
expr: NodeChild;
|
|
1624
|
-
for:
|
|
1625
|
-
in:
|
|
1626
|
+
for: { Node: KeywordWithExpr };
|
|
1627
|
+
in: { Node: KeywordWithGroupedXXX };
|
|
1626
1628
|
rparen: NodeChild;
|
|
1627
1629
|
};
|
|
1628
1630
|
};
|
|
@@ -1631,7 +1633,7 @@ export type UnpivotPipeOperator = PipeOperator & {
|
|
|
1631
1633
|
node_type: "UnpivotPipeOperator";
|
|
1632
1634
|
children: {
|
|
1633
1635
|
exprs: undefined;
|
|
1634
|
-
config:
|
|
1636
|
+
config: { Node: UnpivotConfig & UnknownNode };
|
|
1635
1637
|
as?: NodeChild;
|
|
1636
1638
|
alias?: NodeChild;
|
|
1637
1639
|
};
|
|
@@ -1642,7 +1644,7 @@ export type UnpivotOperator = BaseNode & {
|
|
|
1642
1644
|
node_type: "UnpivotOperator";
|
|
1643
1645
|
children: {
|
|
1644
1646
|
include_or_exclude_nulls: NodeVecChild;
|
|
1645
|
-
config:
|
|
1647
|
+
config: { Node: UnpivotConfig & UnknownNode };
|
|
1646
1648
|
as?: NodeChild;
|
|
1647
1649
|
alias?: NodeChild;
|
|
1648
1650
|
};
|
|
@@ -1768,6 +1770,6 @@ export type XXXByExprs = BaseNode & {
|
|
|
1768
1770
|
node_type: "XXXByExprs";
|
|
1769
1771
|
children: {
|
|
1770
1772
|
by: NodeChild;
|
|
1771
|
-
exprs: { NodeVec: Expr
|
|
1773
|
+
exprs: { NodeVec: (Expr & UnknownNode)[] };
|
|
1772
1774
|
};
|
|
1773
1775
|
};
|
package/bq2cst_bg.wasm
CHANGED
|
Binary file
|