@akohn/dashql 0.0.19-dev.247 → 0.0.19-dev.261.g8742d37fb
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/dist/platform/session/agent_session_client.d.ts +6 -0
- package/dist/platform/session/agent_session_protocol.d.ts +1 -1
- package/dist/platform/session/agent_session_protocol.js +4 -4
- package/dist/platform/workbook/chart_config.d.ts +35 -0
- package/dist/platform/workbook/chart_config.js +222 -0
- package/dist/platform/workbook/run_events.d.ts +7 -0
- package/dist/platform/workbook/run_events.js +16 -0
- package/dist/wasm/dashql_core.d.ts +1407 -1400
- package/dist/wasm/dashql_core.js +51 -33
- package/dist/wasm/dashql_core.wasm +0 -0
- package/package.json +1 -1
package/dist/wasm/dashql_core.js
CHANGED
|
@@ -204,6 +204,30 @@ function takeFromExternrefTable0(idx) {
|
|
|
204
204
|
wasm.__externref_table_dealloc(idx);
|
|
205
205
|
return value;
|
|
206
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* Replay a recording of the progress of a query (JSON, see `ProfileRecording`) up to a point in time in milliseconds
|
|
209
|
+
* since its first payload, with a layout of the plan or the default one. None if nothing happened until then.
|
|
210
|
+
* @param {string} recording
|
|
211
|
+
* @param {number} until_ms
|
|
212
|
+
* @param {ProfileLayoutView | null} [layout]
|
|
213
|
+
* @returns {QueryProfileProgressView | undefined}
|
|
214
|
+
*/
|
|
215
|
+
function replayQueryProgress(recording, until_ms, layout) {
|
|
216
|
+
const ptr0 = passStringToWasm0(recording, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
217
|
+
const len0 = WASM_VECTOR_LEN;
|
|
218
|
+
const ret = wasm.replayQueryProgress(ptr0, len0, until_ms, isLikeNone(layout) ? 0 : addToExternrefTable0(layout));
|
|
219
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
220
|
+
return takeFromExternrefTable0(ret[0]);
|
|
221
|
+
}
|
|
222
|
+
function _assertClass(instance, klass) {
|
|
223
|
+
if (!(instance instanceof klass)) throw new Error(`expected instance of ${klass.name}`);
|
|
224
|
+
}
|
|
225
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
226
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
227
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
228
|
+
WASM_VECTOR_LEN = arg.length;
|
|
229
|
+
return ptr;
|
|
230
|
+
}
|
|
207
231
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
208
232
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
209
233
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -218,40 +242,16 @@ function getUint32ArrayMemory0() {
|
|
|
218
242
|
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
219
243
|
return cachedUint32ArrayMemory0;
|
|
220
244
|
}
|
|
245
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
246
|
+
ptr = ptr >>> 0;
|
|
247
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
248
|
+
}
|
|
221
249
|
function passArray32ToWasm0(arg, malloc) {
|
|
222
250
|
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
223
251
|
getUint32ArrayMemory0().set(arg, ptr / 4);
|
|
224
252
|
WASM_VECTOR_LEN = arg.length;
|
|
225
253
|
return ptr;
|
|
226
254
|
}
|
|
227
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
228
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
229
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
230
|
-
WASM_VECTOR_LEN = arg.length;
|
|
231
|
-
return ptr;
|
|
232
|
-
}
|
|
233
|
-
function _assertClass(instance, klass) {
|
|
234
|
-
if (!(instance instanceof klass)) throw new Error(`expected instance of ${klass.name}`);
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Replay a recording of the progress of a query (JSON, see `ProfileRecording`) up to a point in time in milliseconds
|
|
238
|
-
* since its first payload, with a layout of the plan or the default one. None if nothing happened until then.
|
|
239
|
-
* @param {string} recording
|
|
240
|
-
* @param {number} until_ms
|
|
241
|
-
* @param {ProfileLayoutView | null} [layout]
|
|
242
|
-
* @returns {QueryProfileProgressView | undefined}
|
|
243
|
-
*/
|
|
244
|
-
function replayQueryProgress(recording, until_ms, layout) {
|
|
245
|
-
const ptr0 = passStringToWasm0(recording, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
246
|
-
const len0 = WASM_VECTOR_LEN;
|
|
247
|
-
const ret = wasm.replayQueryProgress(ptr0, len0, until_ms, isLikeNone(layout) ? 0 : addToExternrefTable0(layout));
|
|
248
|
-
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
249
|
-
return takeFromExternrefTable0(ret[0]);
|
|
250
|
-
}
|
|
251
|
-
function getArrayU32FromWasm0(ptr, len) {
|
|
252
|
-
ptr = ptr >>> 0;
|
|
253
|
-
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
254
|
-
}
|
|
255
255
|
/**
|
|
256
256
|
* The literal of the value of an input control, in the Hyper dialect: `sql_type` is the SQL text of the type of the
|
|
257
257
|
* input, `SqlType.sql`, absent without a type
|
|
@@ -432,12 +432,12 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
432
432
|
wasm.__externref_drop_slice(ptr, len);
|
|
433
433
|
return result;
|
|
434
434
|
}
|
|
435
|
-
function wasm_bindgen__convert__closures_____invoke__ha7a2b373f2a9ce09(arg0, arg1, arg2) {
|
|
436
|
-
return wasm.wasm_bindgen__convert__closures_____invoke__ha7a2b373f2a9ce09(arg0, arg1, arg2);
|
|
437
|
-
}
|
|
438
435
|
function wasm_bindgen__convert__closures_____invoke__hc9cbe033348e018d(arg0, arg1, arg2) {
|
|
439
436
|
wasm.wasm_bindgen__convert__closures_____invoke__hc9cbe033348e018d(arg0, arg1, arg2);
|
|
440
437
|
}
|
|
438
|
+
function wasm_bindgen__convert__closures_____invoke__ha7a2b373f2a9ce09(arg0, arg1, arg2) {
|
|
439
|
+
return wasm.wasm_bindgen__convert__closures_____invoke__ha7a2b373f2a9ce09(arg0, arg1, arg2);
|
|
440
|
+
}
|
|
441
441
|
function wasm_bindgen__convert__closures_____invoke__h3cb6850919769fd7(arg0, arg1, arg2, arg3) {
|
|
442
442
|
wasm.wasm_bindgen__convert__closures_____invoke__h3cb6850919769fd7(arg0, arg1, arg2, arg3);
|
|
443
443
|
}
|
|
@@ -1625,6 +1625,24 @@ var Runtime = class Runtime {
|
|
|
1625
1625
|
wasm.runtime_answerExternalChange(this.__wbg_ptr, ptr0, len0, prompt, isLikeNone(reload) ? 16777215 : reload ? 1 : 0);
|
|
1626
1626
|
}
|
|
1627
1627
|
/**
|
|
1628
|
+
* The relations file of the catalog of a connection, the text of its `dashql-catalog-relations.sql`: the tables that
|
|
1629
|
+
* the connection reported as `CREATE TABLE` statements. The tab writes it into the copies of an agent session. None
|
|
1630
|
+
* for an unknown connection, while a task holds it, and after a reset of the catalog.
|
|
1631
|
+
* @param {string} connection_id
|
|
1632
|
+
* @returns {string | undefined}
|
|
1633
|
+
*/
|
|
1634
|
+
catalogRelationsFile(connection_id) {
|
|
1635
|
+
const ptr0 = passStringToWasm0(connection_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1636
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1637
|
+
const ret = wasm.runtime_catalogRelationsFile(this.__wbg_ptr, ptr0, len0);
|
|
1638
|
+
let v2;
|
|
1639
|
+
if (ret[0] !== 0) {
|
|
1640
|
+
v2 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1641
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1642
|
+
}
|
|
1643
|
+
return v2;
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1628
1646
|
* Check the folders of workbooks that the platform keeps in folders of their own for changes outside the app, e.g.
|
|
1629
1647
|
* when the window gets the focus. The checks run one at a time after the ones that are queued. A change of the
|
|
1630
1648
|
* scripts asks the question of the `storage` view (`externalChanges`), see `answerExternalChange`.
|
|
@@ -4419,7 +4437,7 @@ function __wbg_get_imports() {
|
|
|
4419
4437
|
imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
|
|
4420
4438
|
return arg0.value;
|
|
4421
4439
|
};
|
|
4422
|
-
imports.wbg.
|
|
4440
|
+
imports.wbg.__wbindgen_cast_061d746ad856efa2 = function(arg0, arg1) {
|
|
4423
4441
|
return makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h74bdb7d22b702b82, wasm_bindgen__convert__closures_____invoke__ha7a2b373f2a9ce09);
|
|
4424
4442
|
};
|
|
4425
4443
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -4428,7 +4446,7 @@ function __wbg_get_imports() {
|
|
|
4428
4446
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
4429
4447
|
return BigInt.asUintN(64, arg0);
|
|
4430
4448
|
};
|
|
4431
|
-
imports.wbg.
|
|
4449
|
+
imports.wbg.__wbindgen_cast_995c4d5901b93656 = function(arg0, arg1) {
|
|
4432
4450
|
return makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he52a6c160ad8bcc6, wasm_bindgen__convert__closures_____invoke__hc9cbe033348e018d);
|
|
4433
4451
|
};
|
|
4434
4452
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akohn/dashql",
|
|
3
|
-
"version": "0.0.19-dev.
|
|
3
|
+
"version": "0.0.19-dev.261.g8742d37fb",
|
|
4
4
|
"description": "DashQL in TypeScript: the WebAssembly bindings of its SQL core, its runtime and the platforms of the runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MPL-2.0",
|