bq2cst 0.5.9 → 0.5.10
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 +2 -0
- package/bq2cst.js +36 -36
- package/bq2cst_bg.wasm +0 -0
- package/package.json +1 -1
package/bq2cst.d.ts
CHANGED
|
@@ -648,10 +648,12 @@ export type CreateRowAccessPolicyStatement = XXXStatement & {
|
|
|
648
648
|
export type CreateSchemaStatement = XXXStatement & {
|
|
649
649
|
node_type: "CreateSchemaStatement";
|
|
650
650
|
children: {
|
|
651
|
+
external?: NodeChild;
|
|
651
652
|
what: NodeChild;
|
|
652
653
|
if_not_exists?: NodeVecChild;
|
|
653
654
|
ident: NodeChild;
|
|
654
655
|
default_collate: NodeChild;
|
|
656
|
+
with_connection?: NodeChild;
|
|
655
657
|
options?: NodeChild;
|
|
656
658
|
};
|
|
657
659
|
};
|
package/bq2cst.js
CHANGED
|
@@ -4,29 +4,25 @@ imports['__wbindgen_placeholder__'] = module.exports;
|
|
|
4
4
|
let wasm;
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
heap.push(undefined, null, true, false);
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
function getObject(idx) { return heap[idx]; }
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
15
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
16
|
-
}
|
|
17
|
-
return cachedUint8ArrayMemory0;
|
|
18
|
-
}
|
|
13
|
+
let heap_next = heap.length;
|
|
19
14
|
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
function dropObject(idx) {
|
|
16
|
+
if (idx < 132) return;
|
|
17
|
+
heap[idx] = heap_next;
|
|
18
|
+
heap_next = idx;
|
|
23
19
|
}
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
function takeObject(idx) {
|
|
22
|
+
const ret = getObject(idx);
|
|
23
|
+
dropObject(idx);
|
|
24
|
+
return ret;
|
|
25
|
+
}
|
|
30
26
|
|
|
31
27
|
function addHeapObject(obj) {
|
|
32
28
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -37,18 +33,22 @@ function addHeapObject(obj) {
|
|
|
37
33
|
return idx;
|
|
38
34
|
}
|
|
39
35
|
|
|
40
|
-
|
|
36
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
41
37
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
cachedTextDecoder.decode();
|
|
39
|
+
|
|
40
|
+
let cachedUint8ArrayMemory0 = null;
|
|
41
|
+
|
|
42
|
+
function getUint8ArrayMemory0() {
|
|
43
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
44
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
45
|
+
}
|
|
46
|
+
return cachedUint8ArrayMemory0;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return ret;
|
|
49
|
+
function getStringFromWasm0(ptr, len) {
|
|
50
|
+
ptr = ptr >>> 0;
|
|
51
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
function debugString(val) {
|
|
@@ -224,11 +224,6 @@ module.exports.tokenize = function(code) {
|
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
|
|
227
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
228
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
229
|
-
return addHeapObject(ret);
|
|
230
|
-
};
|
|
231
|
-
|
|
232
227
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
233
228
|
takeObject(arg0);
|
|
234
229
|
};
|
|
@@ -243,6 +238,11 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
|
243
238
|
return addHeapObject(ret);
|
|
244
239
|
};
|
|
245
240
|
|
|
241
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
242
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
243
|
+
return addHeapObject(ret);
|
|
244
|
+
};
|
|
245
|
+
|
|
246
246
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
247
247
|
const ret = new Error();
|
|
248
248
|
return addHeapObject(ret);
|
|
@@ -287,17 +287,17 @@ module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
|
287
287
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
288
288
|
};
|
|
289
289
|
|
|
290
|
-
module.exports.
|
|
290
|
+
module.exports.__wbg_new_a220cf903aa02ca2 = function() {
|
|
291
291
|
const ret = new Array();
|
|
292
292
|
return addHeapObject(ret);
|
|
293
293
|
};
|
|
294
294
|
|
|
295
|
-
module.exports.
|
|
295
|
+
module.exports.__wbg_new_8608a2b51a5f6737 = function() {
|
|
296
296
|
const ret = new Map();
|
|
297
297
|
return addHeapObject(ret);
|
|
298
298
|
};
|
|
299
299
|
|
|
300
|
-
module.exports.
|
|
300
|
+
module.exports.__wbg_new_525245e2b9901204 = function() {
|
|
301
301
|
const ret = new Object();
|
|
302
302
|
return addHeapObject(ret);
|
|
303
303
|
};
|
|
@@ -307,11 +307,11 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
307
307
|
return ret;
|
|
308
308
|
};
|
|
309
309
|
|
|
310
|
-
module.exports.
|
|
310
|
+
module.exports.__wbg_set_673dda6c73d19609 = function(arg0, arg1, arg2) {
|
|
311
311
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
-
module.exports.
|
|
314
|
+
module.exports.__wbg_set_49185437f0ab06f8 = function(arg0, arg1, arg2) {
|
|
315
315
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
316
316
|
return addHeapObject(ret);
|
|
317
317
|
};
|
package/bq2cst_bg.wasm
CHANGED
|
Binary file
|