bq2cst 1.0.3 → 1.0.5

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 CHANGED
@@ -62,6 +62,7 @@ export type UnknownNode =
62
62
  | ExecuteStatement
63
63
  | ExportDataStatement
64
64
  | ExportModelStatement
65
+ | ExtendPipeOperator
65
66
  | ExtractArgument
66
67
  | ForStatement
67
68
  | ForSystemTimeAsOfClause
@@ -267,7 +268,7 @@ export type AddConstraintClause = BaseNode & {
267
268
  export type AggregatePipeOperator = PipeOperator & {
268
269
  node_type: "AggregatePipeOperator";
269
270
  children: {
270
- groupby?: NodeChild;
271
+ group_and_order_by?: NodeChild;
271
272
  };
272
273
  };
273
274
 
@@ -887,6 +888,11 @@ export type ExtractArgument = BaseNode & {
887
888
  };
888
889
  };
889
890
 
891
+ export type ExtendPipeOperator = PipeOperator & {
892
+ node_type: "ExtendPipeOperator";
893
+ children: SelectPipeOperator["children"];
894
+ };
895
+
890
896
  export type ForStatement = LabelableStatement & {
891
897
  node_type: "ForStatement";
892
898
  children: {
@@ -1114,7 +1120,12 @@ export type KeywordSequence = BaseNode & {
1114
1120
  node_type: "KeywordSequence";
1115
1121
  children: {
1116
1122
  next_keyword: {
1117
- Node: Keyword | KeywordSequence | KeywordWithExpr | KeywordWithGroupedXXX;
1123
+ Node:
1124
+ | Keyword
1125
+ | KeywordSequence
1126
+ | KeywordWithExpr
1127
+ | KeywordWithExprs
1128
+ | KeywordWithGroupedXXX;
1118
1129
  };
1119
1130
  };
1120
1131
  };
@@ -1576,6 +1587,8 @@ export type Type = BaseNode & {
1576
1587
  references?: NodeChild;
1577
1588
  enforced?: NodeChild;
1578
1589
  default?: NodeChild;
1590
+ generated_as?: NodeChild;
1591
+ stored_options?: NodeChild;
1579
1592
  options?: NodeChild;
1580
1593
  collate?: NodeChild;
1581
1594
  aggregate?: NodeChild;
package/bq2cst.js CHANGED
@@ -161,10 +161,10 @@ function takeFromExternrefTable0(idx) {
161
161
  * @param {string} code
162
162
  * @returns {any}
163
163
  */
164
- module.exports.parse = function(code) {
164
+ module.exports.tokenize = function(code) {
165
165
  const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
166
166
  const len0 = WASM_VECTOR_LEN;
167
- const ret = wasm.parse(ptr0, len0);
167
+ const ret = wasm.tokenize(ptr0, len0);
168
168
  if (ret[2]) {
169
169
  throw takeFromExternrefTable0(ret[1]);
170
170
  }
@@ -175,10 +175,10 @@ module.exports.parse = function(code) {
175
175
  * @param {string} code
176
176
  * @returns {any}
177
177
  */
178
- module.exports.tokenize = function(code) {
178
+ module.exports.parse = function(code) {
179
179
  const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
180
180
  const len0 = WASM_VECTOR_LEN;
181
- const ret = wasm.tokenize(ptr0, len0);
181
+ const ret = wasm.parse(ptr0, len0);
182
182
  if (ret[2]) {
183
183
  throw takeFromExternrefTable0(ret[1]);
184
184
  }
package/bq2cst_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "kitta65 <kitta65kitta@gmail.com>"
5
5
  ],
6
- "version": "1.0.3",
6
+ "version": "1.0.5",
7
7
  "license": "MIT",
8
8
  "files": [
9
9
  "bq2cst_bg.wasm",