@akohn/dashql 0.0.19-dev.299.g3adbd8a4b → 0.0.19-dev.368.g7091b292b
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/README.md +1 -2
- package/dist/core/api.d.ts +25 -18
- package/dist/core/api.js +45 -46
- package/dist/core/connection.d.ts +1 -1
- package/dist/core/index.d.ts +0 -4
- package/dist/core/index.js +1 -4
- package/dist/core/runtime.d.ts +1 -1
- package/dist/core/workbook.d.ts +1 -1
- package/dist/platform/compute/arrow_formatter.d.ts +3 -1
- package/dist/platform/compute/arrow_formatter.js +23 -20
- package/dist/platform/compute/computation_types.d.ts +7 -12
- package/dist/platform/compute/computation_types.js +6 -3
- package/dist/platform/compute/query_result_search_sql.d.ts +0 -7
- package/dist/platform/compute/query_result_search_sql.js +1 -19
- package/dist/platform/connections/connection_params.d.ts +5 -6
- package/dist/platform/connections/connection_params.js +14 -25
- package/dist/platform/connections/connection_state.d.ts +1 -1
- package/dist/platform/connections/connector_configs.d.ts +2 -3
- package/dist/platform/connections/connector_info.d.ts +4 -14
- package/dist/platform/connections/connector_info.js +1 -25
- package/dist/platform/connections/embedded_database_channel.d.ts +3 -3
- package/dist/platform/connections/embedded_database_channel.js +12 -6
- package/dist/platform/connections/hyper/hyper_error_info.d.ts +0 -15
- package/dist/platform/connections/hyper/hyper_error_info.js +1 -18
- package/dist/platform/connections/query_execution.js +9 -7
- package/dist/platform/connections/query_execution_args.d.ts +2 -2
- package/dist/platform/http_client.d.ts +1 -1
- package/dist/platform/logger/logger.d.ts +3 -3
- package/dist/platform/query/query_execution_state.d.ts +11 -38
- package/dist/platform/query/query_execution_state.js +6 -1
- package/dist/platform/query/query_progress.d.ts +0 -14
- package/dist/platform/query/query_result_cache.d.ts +2 -2
- package/dist/platform/storage/composite_storage_backend.d.ts +64 -0
- package/dist/platform/storage/composite_storage_backend.js +321 -0
- package/dist/platform/storage/native_storage_backend.d.ts +1 -1
- package/dist/platform/storage/native_storage_backend.js +1 -1
- package/dist/platform/storage/opfs_query_result_cache.d.ts +0 -2
- package/dist/platform/storage/opfs_query_result_cache.js +3 -5
- package/dist/platform/storage/opfs_storage_backend.d.ts +67 -0
- package/dist/platform/storage/opfs_storage_backend.js +494 -0
- package/dist/platform/storage/workbook_locator.d.ts +7 -0
- package/dist/platform/storage/workbook_locator.js +14 -0
- package/dist/platform/storage/workbook_tables.d.ts +1 -4
- package/dist/platform/storage/workbook_tables.js +3 -17
- package/dist/platform/storage/workbook_transfer.d.ts +9 -0
- package/dist/platform/storage/workbook_transfer.js +84 -0
- package/dist/platform/storage/workbook_tree.d.ts +30 -9
- package/dist/platform/storage/workbook_tree.js +17 -96
- package/dist/platform/utils/base64.js +4 -4
- package/dist/platform/web_http_client.d.ts +1 -4
- package/dist/platform/web_http_client.js +0 -5
- package/dist/platform/workbook/attachment_mounts.d.ts +12 -4
- package/dist/platform/workbook/attachment_mounts.js +69 -60
- package/dist/platform/workbook/run_events.js +1 -1
- package/dist/platform/workbook/script_compilation.d.ts +0 -1
- package/dist/platform/workbook/script_compilation.js +1 -14
- package/dist/platform/workbook/script_reference_check.js +7 -6
- package/dist/platform/workbook/script_types.d.ts +1 -1
- package/dist/platform/workbook/script_types.js +1 -10
- package/dist/platform/workbook/workbook_execution.d.ts +0 -2
- package/dist/platform/workbook/workbook_execution.js +1 -4
- package/dist/platform/workbook/workbook_inputs.d.ts +7 -7
- package/dist/platform/workbook/workbook_inputs.js +4 -4
- package/dist/platform/workbook/workbook_scripts.d.ts +2 -2
- package/dist/runtime/compute_platform.js +2 -2
- package/dist/runtime/node/node_platform.js +1 -1
- package/dist/runtime/platform_requests.js +1 -1
- package/dist/runtime/query/query_channels.d.ts +0 -2
- package/dist/runtime/query/query_channels.js +36 -55
- package/dist/runtime/run_mounts.d.ts +2 -1
- package/dist/runtime/run_mounts.js +4 -5
- package/dist/runtime/runtime.d.ts +3 -0
- package/dist/runtime/runtime.js +10 -6
- package/dist/runtime/runtime_storage.d.ts +2 -5
- package/dist/runtime/runtime_storage.js +4 -13
- package/dist/runtime/workbook_projection.js +2 -2
- package/dist/runtime/workbook_run_report.d.ts +3 -6
- package/dist/runtime/workbook_run_report.js +33 -47
- package/dist/wasm/dashql_core.d.ts +2206 -1922
- package/dist/wasm/dashql_core.js +428 -223
- package/dist/wasm/dashql_core.wasm +0 -0
- package/dist/wasm/dashql_dataflow.wasm +0 -0
- package/package.json +1 -1
- package/dist/core/format.d.ts +0 -4
- package/dist/core/format.js +0 -23
- package/dist/core/lookup.d.ts +0 -10
- package/dist/core/lookup.js +0 -129
- package/dist/core/tokens.d.ts +0 -9
- package/dist/core/tokens.js +0 -78
- package/dist/core/variant.d.ts +0 -4
- package/dist/core/variant.js +0 -0
- package/dist/platform/connections/hyper/local_cloud.d.ts +0 -15
- package/dist/platform/connections/hyper/local_cloud.js +0 -14
- package/dist/platform/connections/query_channel.d.ts +0 -3
- package/dist/platform/connections/query_channel.js +0 -11
- package/dist/platform/hyper_link_target.d.ts +0 -8
- package/dist/platform/hyper_link_target.js +0 -35
- package/dist/platform/sql/sql_format.d.ts +0 -9
- package/dist/platform/sql/sql_format.js +0 -40
- package/dist/platform/sql/sql_lint.d.ts +0 -27
- package/dist/platform/sql/sql_lint.js +0 -69
- package/dist/platform/sql/sql_report.d.ts +0 -18
- package/dist/platform/sql/sql_report.js +0 -80
- package/dist/platform/storage/storage_versions.d.ts +0 -3
- package/dist/platform/storage/storage_versions.js +0 -13
- package/dist/platform/utils/async_consumer.d.ts +0 -14
- package/dist/platform/utils/async_consumer.js +0 -24
- package/dist/platform/workbook/attachment_mirror.d.ts +0 -2
- package/dist/platform/workbook/attachment_mirror.js +0 -25
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// dist/.stage/src/platform/utils/async_consumer.ts
|
|
2
|
-
var AsyncConsumerLambdas = class {
|
|
3
|
-
resolveFn;
|
|
4
|
-
rejectFn;
|
|
5
|
-
constructor(resolveFn = () => {}, rejectFn = () => {}) {
|
|
6
|
-
this.resolveFn = resolveFn;
|
|
7
|
-
this.rejectFn = rejectFn;
|
|
8
|
-
}
|
|
9
|
-
resolve(ctx, value) {
|
|
10
|
-
try {
|
|
11
|
-
this.resolveFn(ctx, value);
|
|
12
|
-
} catch (e) {
|
|
13
|
-
console.warn(`AsyncConsumerLambdas::resolveFn threw error: ${e}`);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
reject(ctx, err) {
|
|
17
|
-
try {
|
|
18
|
-
this.rejectFn(ctx, err);
|
|
19
|
-
} catch (e) {
|
|
20
|
-
console.warn(`AsyncConsumerLambdas::rejectFn threw error: ${e}`);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
export { AsyncConsumerLambdas };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getOPFSRoot } from "../opfs_root.js";
|
|
2
|
-
import { STORAGE_ATTACHMENTS_FOLDER, STORAGE_WORKBOOKS_FOLDER, validateDataFileName } from "../storage/storage_backend.js";
|
|
3
|
-
// dist/.stage/src/platform/workbook/attachment_mirror.ts
|
|
4
|
-
async function mirrorWorkbookAttachments(native, workbookId, getRoot = getOPFSRoot) {
|
|
5
|
-
const files = (await native.stampFolder()).attachments;
|
|
6
|
-
const mirror = await (await (await (await getRoot()).getDirectoryHandle(STORAGE_WORKBOOKS_FOLDER, { create: true })).getDirectoryHandle(workbookId, { create: true })).getDirectoryHandle(STORAGE_ATTACHMENTS_FOLDER, { create: true });
|
|
7
|
-
const copied = [];
|
|
8
|
-
const names = /* @__PURE__ */ new Set();
|
|
9
|
-
for (const file of files) {
|
|
10
|
-
validateDataFileName(file.name);
|
|
11
|
-
names.add(file.name);
|
|
12
|
-
let current = null;
|
|
13
|
-
try {
|
|
14
|
-
current = await (await mirror.getFileHandle(file.name)).getFile();
|
|
15
|
-
} catch {}
|
|
16
|
-
if (current != null && current.size === file.size && current.lastModified >= file.mtimeMs) continue;
|
|
17
|
-
const writable = await (await mirror.getFileHandle(file.name, { create: true })).createWritable();
|
|
18
|
-
await writable.write(await native.loadDataFile(workbookId, file.name));
|
|
19
|
-
await writable.close();
|
|
20
|
-
copied.push(file.name);
|
|
21
|
-
}
|
|
22
|
-
for await (const [name, handle] of mirror.entries()) if (handle.kind === "file" && !names.has(name)) await mirror.removeEntry(name);
|
|
23
|
-
return copied;
|
|
24
|
-
}
|
|
25
|
-
export { mirrorWorkbookAttachments };
|