bq2cst 0.5.8 → 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 +30 -29
- package/bq2cst_bg.wasm +0 -0
- package/package.json +2 -2
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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
let imports = {};
|
|
2
3
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
4
|
let wasm;
|
|
@@ -36,18 +37,18 @@ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true
|
|
|
36
37
|
|
|
37
38
|
cachedTextDecoder.decode();
|
|
38
39
|
|
|
39
|
-
let
|
|
40
|
+
let cachedUint8ArrayMemory0 = null;
|
|
40
41
|
|
|
41
|
-
function
|
|
42
|
-
if (
|
|
43
|
-
|
|
42
|
+
function getUint8ArrayMemory0() {
|
|
43
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
44
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
44
45
|
}
|
|
45
|
-
return
|
|
46
|
+
return cachedUint8ArrayMemory0;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
function getStringFromWasm0(ptr, len) {
|
|
49
50
|
ptr = ptr >>> 0;
|
|
50
|
-
return cachedTextDecoder.decode(
|
|
51
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
function debugString(val) {
|
|
@@ -137,7 +138,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
137
138
|
if (realloc === undefined) {
|
|
138
139
|
const buf = cachedTextEncoder.encode(arg);
|
|
139
140
|
const ptr = malloc(buf.length, 1) >>> 0;
|
|
140
|
-
|
|
141
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
141
142
|
WASM_VECTOR_LEN = buf.length;
|
|
142
143
|
return ptr;
|
|
143
144
|
}
|
|
@@ -145,7 +146,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
145
146
|
let len = arg.length;
|
|
146
147
|
let ptr = malloc(len, 1) >>> 0;
|
|
147
148
|
|
|
148
|
-
const mem =
|
|
149
|
+
const mem = getUint8ArrayMemory0();
|
|
149
150
|
|
|
150
151
|
let offset = 0;
|
|
151
152
|
|
|
@@ -160,7 +161,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
160
161
|
arg = arg.slice(offset);
|
|
161
162
|
}
|
|
162
163
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
163
|
-
const view =
|
|
164
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
164
165
|
const ret = encodeString(arg, view);
|
|
165
166
|
|
|
166
167
|
offset += ret.written;
|
|
@@ -171,13 +172,13 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
171
172
|
return ptr;
|
|
172
173
|
}
|
|
173
174
|
|
|
174
|
-
let
|
|
175
|
+
let cachedDataViewMemory0 = null;
|
|
175
176
|
|
|
176
|
-
function
|
|
177
|
-
if (
|
|
178
|
-
|
|
177
|
+
function getDataViewMemory0() {
|
|
178
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
179
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
179
180
|
}
|
|
180
|
-
return
|
|
181
|
+
return cachedDataViewMemory0;
|
|
181
182
|
}
|
|
182
183
|
/**
|
|
183
184
|
* @param {string} code
|
|
@@ -189,9 +190,9 @@ module.exports.parse = function(code) {
|
|
|
189
190
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
190
191
|
const len0 = WASM_VECTOR_LEN;
|
|
191
192
|
wasm.parse(retptr, ptr0, len0);
|
|
192
|
-
var r0 =
|
|
193
|
-
var r1 =
|
|
194
|
-
var r2 =
|
|
193
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
194
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
195
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
195
196
|
if (r2) {
|
|
196
197
|
throw takeObject(r1);
|
|
197
198
|
}
|
|
@@ -211,9 +212,9 @@ module.exports.tokenize = function(code) {
|
|
|
211
212
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
212
213
|
const len0 = WASM_VECTOR_LEN;
|
|
213
214
|
wasm.tokenize(retptr, ptr0, len0);
|
|
214
|
-
var r0 =
|
|
215
|
-
var r1 =
|
|
216
|
-
var r2 =
|
|
215
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
216
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
217
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
217
218
|
if (r2) {
|
|
218
219
|
throw takeObject(r1);
|
|
219
220
|
}
|
|
@@ -251,8 +252,8 @@ module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
|
251
252
|
const ret = getObject(arg1).stack;
|
|
252
253
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
253
254
|
const len1 = WASM_VECTOR_LEN;
|
|
254
|
-
|
|
255
|
-
|
|
255
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
256
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
256
257
|
};
|
|
257
258
|
|
|
258
259
|
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
@@ -286,17 +287,17 @@ module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
|
286
287
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
287
288
|
};
|
|
288
289
|
|
|
289
|
-
module.exports.
|
|
290
|
+
module.exports.__wbg_new_a220cf903aa02ca2 = function() {
|
|
290
291
|
const ret = new Array();
|
|
291
292
|
return addHeapObject(ret);
|
|
292
293
|
};
|
|
293
294
|
|
|
294
|
-
module.exports.
|
|
295
|
+
module.exports.__wbg_new_8608a2b51a5f6737 = function() {
|
|
295
296
|
const ret = new Map();
|
|
296
297
|
return addHeapObject(ret);
|
|
297
298
|
};
|
|
298
299
|
|
|
299
|
-
module.exports.
|
|
300
|
+
module.exports.__wbg_new_525245e2b9901204 = function() {
|
|
300
301
|
const ret = new Object();
|
|
301
302
|
return addHeapObject(ret);
|
|
302
303
|
};
|
|
@@ -306,11 +307,11 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
306
307
|
return ret;
|
|
307
308
|
};
|
|
308
309
|
|
|
309
|
-
module.exports.
|
|
310
|
+
module.exports.__wbg_set_673dda6c73d19609 = function(arg0, arg1, arg2) {
|
|
310
311
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
311
312
|
};
|
|
312
313
|
|
|
313
|
-
module.exports.
|
|
314
|
+
module.exports.__wbg_set_49185437f0ab06f8 = function(arg0, arg1, arg2) {
|
|
314
315
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
315
316
|
return addHeapObject(ret);
|
|
316
317
|
};
|
|
@@ -319,8 +320,8 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
|
319
320
|
const ret = debugString(getObject(arg1));
|
|
320
321
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
321
322
|
const len1 = WASM_VECTOR_LEN;
|
|
322
|
-
|
|
323
|
-
|
|
323
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
324
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
324
325
|
};
|
|
325
326
|
|
|
326
327
|
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
package/bq2cst_bg.wasm
CHANGED
|
Binary file
|