@akohn/dashql 0.0.0-stage → 0.0.2-dev.17
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/LICENSE +373 -0
- package/NOTICE +66 -0
- package/README.md +154 -2
- package/dist/_virtual/_rolldown/runtime.js +12 -0
- package/dist/core/api.d.ts +321 -0
- package/dist/core/api.js +881 -0
- package/dist/core/batch.d.ts +31 -0
- package/dist/core/batch.js +92 -0
- package/dist/core/batch_worker.d.ts +1 -0
- package/dist/core/batch_worker.js +43 -0
- package/dist/core/batch_worker_client.d.ts +20 -0
- package/dist/core/batch_worker_client.js +85 -0
- package/dist/core/batch_worker_protocol.d.ts +13 -0
- package/dist/core/batch_worker_protocol.js +0 -0
- package/dist/core/browser_worker.d.ts +3 -0
- package/dist/core/browser_worker.js +1 -0
- package/dist/core/buffers.d.ts +15 -0
- package/dist/core/buffers.js +35 -0
- package/dist/core/comment_tags.d.ts +22 -0
- package/dist/core/comment_tags.js +48 -0
- package/dist/core/connection.d.ts +3 -0
- package/dist/core/connection.js +1 -0
- package/dist/core/dataflow.d.ts +79 -0
- package/dist/core/dataflow.js +124 -0
- package/dist/core/flatbuffer_view.d.ts +14 -0
- package/dist/core/flatbuffer_view.js +43 -0
- package/dist/core/format.d.ts +4 -0
- package/dist/core/format.js +23 -0
- package/dist/core/index.d.ts +14 -0
- package/dist/core/index.js +15 -0
- package/dist/core/lookup.d.ts +10 -0
- package/dist/core/lookup.js +129 -0
- package/dist/core/query_history.d.ts +13 -0
- package/dist/core/query_history.js +20 -0
- package/dist/core/runtime.d.ts +2 -0
- package/dist/core/runtime.js +1 -0
- package/dist/core/tokens.d.ts +9 -0
- package/dist/core/tokens.js +78 -0
- package/dist/core/variant.d.ts +4 -0
- package/dist/core/variant.js +0 -0
- package/dist/core/workbook.d.ts +6 -0
- package/dist/core/workbook.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression-function.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression-function.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression.js +105 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/column-ref-expression.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/column-ref-expression.js +84 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison-function.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison-function.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison.js +165 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-function-cast.d.ts +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-function-cast.js +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-interval-cast.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-interval-cast.js +105 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-type-cast.d.ts +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-type-cast.js +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression-sub-type.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression-sub-type.js +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression.js +142 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-expression.d.ts +46 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-expression.js +111 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-modifier.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-modifier.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal.js +77 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression-function.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression-function.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression.js +116 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/resolved-column.d.ts +41 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/resolved-column.js +132 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-expression.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-expression.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-function.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-function.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra.d.ts +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra.js +57 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzed-script.d.ts +211 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzed-script.js +563 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-severity.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-severity.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-type.d.ts +15 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-type.js +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error.js +145 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-warning.d.ts +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-warning.js +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-call.d.ts +50 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-call.js +152 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-effect.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-effect.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/constant-expression.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/constant-expression.js +79 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/database-declaration.d.ts +26 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/database-declaration.js +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-declaration.d.ts +48 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-declaration.js +154 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-param.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-param.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-reference.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-reference.js +105 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-column-reference.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-column-reference.js +103 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-table-reference.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-table-reference.js +90 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inference-confidence.d.ts +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inference-confidence.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-column.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-column.js +109 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-table-schema.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-table-schema.js +113 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-statement.d.ts +70 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-statement.js +192 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-target-column.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-target-column.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-scope.d.ts +81 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-scope.js +197 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-tag.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-tag.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter-kind.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter-kind.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter.d.ts +54 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter.js +139 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-column-name.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-column-name.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-function-name.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-function-name.js +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-table-name.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-table-name.js +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/resolved-table.d.ts +43 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/resolved-table.js +128 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/schema-declaration.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/schema-declaration.js +90 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/semantic-node-marker-type.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/semantic-node-marker-type.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type-kind.d.ts +22 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type-kind.js +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type.d.ts +102 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type.js +256 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-column.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-column.js +94 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference-role.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference-role.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference.js +166 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table.js +193 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/visualization-spec.d.ts +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/visualization-spec.js +157 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer.d.ts +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer.js +104 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-diagnostic.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-diagnostic.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-request.d.ts +32 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-request.js +94 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-result.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-result.js +69 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-input.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-input.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-result.d.ts +67 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-result.js +211 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/descriptor-buffer.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/descriptor-buffer.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/diagnostic-severity.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/diagnostic-severity.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/processing-stage.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/processing-stage.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch.js +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-content-statistics.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-content-statistics.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor-pool.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor-pool.js +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor.js +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entries.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entries.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-statistics.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-statistics.js +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-type.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-type.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry.d.ts +43 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-layer.d.ts +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-layer.js +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-memory-statistics.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-memory-statistics.js +103 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-statistics.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-statistics.js +84 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-table-update.d.ts +52 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-table-update.js +128 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog-entry.d.ts +59 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog-entry.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog.d.ts +101 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog.js +252 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-database-entry.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-database-entry.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-schema-entry.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-schema-entry.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-table-entry.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-table-entry.js +62 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptor.d.ts +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptor.js +96 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptors.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptors.js +75 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table-column.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table-column.js +76 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table.d.ts +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table.js +101 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/touched-relations.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/touched-relations.js +75 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog.js +66 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/candidate-tag.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/candidate-tag.js +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-field.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-field.js +83 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-info.d.ts +78 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-info.js +177 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object-type.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object-type.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object.d.ts +116 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object.js +305 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate.d.ts +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate.js +230 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-strategy.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-strategy.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-table-parameter.d.ts +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-table-parameter.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion.d.ts +59 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion.js +155 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion.js +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/relative-symbol-position.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/relative-symbol-position.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-column-ref-context.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-column-ref-context.js +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-context.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-context.js +26 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-table-ref-context.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-table-ref-context.js +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor.d.ts +116 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor.js +303 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op-code.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op-code.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op.d.ts +51 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op.js +144 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff.d.ts +3 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-analysis-version.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-analysis-version.js +81 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-board-position.d.ts +44 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-board-position.js +135 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-comment-tag.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-comment-tag.js +93 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-context.d.ts +91 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-context.js +274 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-kind.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-kind.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-state.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-state.js +99 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-severity.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-severity.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-source.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-source.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic.js +101 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-action.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-action.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-intent.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-intent.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-origin.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-origin.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event.d.ts +62 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event.js +187 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-flow-position.d.ts +53 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-flow-position.js +144 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-offset-unit.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-offset-unit.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-processing-statistics.d.ts +65 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-processing-statistics.js +234 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-script-annotations.d.ts +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-script-annotations.js +210 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-selection.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-selection.js +81 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-reference-kind.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-reference-kind.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-resolution.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-resolution.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-span.d.ts +48 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-span.js +138 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement-description.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement-description.js +88 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement.js +88 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-syntax-span.d.ts +32 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-syntax-span.js +74 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-table-definition.d.ts +26 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-table-definition.js +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-change.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-change.js +93 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-span.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-span.js +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update-status.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update-status.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update.d.ts +158 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update.js +508 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor.js +82 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script-reference.d.ts +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script-reference.js +156 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script.js +115 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/compiled-visualization.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/compiled-visualization.js +104 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-attachment.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-attachment.js +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge-kind.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge-kind.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge.d.ts +49 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge.js +145 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-script.d.ts +54 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-script.js +137 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-statement.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-statement.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access.js +96 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-attachment.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-attachment.js +83 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-catalog-object-id.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-catalog-object-id.js +69 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection-kind.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection-kind.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection.js +74 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-diagnostic.d.ts +46 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-diagnostic.js +125 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge-reason.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge-reason.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge.js +130 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity-type.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity-type.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity.d.ts +49 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity.js +148 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-materialization.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-materialization.js +99 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-node.d.ts +125 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-node.js +343 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script-reference.d.ts +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script-reference.js +180 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script.d.ts +98 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script.js +268 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-unresolved-reference.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-unresolved-reference.js +100 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph.d.ts +95 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph.js +314 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error-code.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error-code.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error.js +117 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-result.d.ts +41 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-result.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-statement-kind.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-statement-kind.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-check.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-check.js +100 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-kind.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-kind.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-dataflow.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-dataflow.js +159 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-consumer.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-consumer.js +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-type-source.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-type-source.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input.d.ts +83 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input.js +184 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-inputs.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-inputs.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/table-parameter-collision.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/table-parameter-collision.js +121 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution.js +107 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-config.d.ts +63 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-config.js +167 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-dialect.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-dialect.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/keyword-case.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/keyword-case.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting.js +14 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/aconst-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/aconst-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attach-database-statement.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attach-database-statement.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attribute-key.d.ts +320 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attribute-key.js +323 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/character-type.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/character-type.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/column-constraint.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/column-constraint.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-modifier.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-modifier.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-operation.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-operation.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block-type.d.ts +14 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block-type.js +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block.d.ts +53 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/constraint-attribute.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/constraint-attribute.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/error.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/error.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/expression-operator.d.ts +49 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/expression-operator.js +52 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/extract-target.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/extract-target.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/group-by-item-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/group-by-item-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/interval-type.d.ts +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/interval-type.js +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/join-type.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/join-type.js +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-command.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-command.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-trigger.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-trigger.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-match.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-match.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/known-function.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/known-function.js +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node-type.d.ts +151 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node-type.js +154 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node.js +100 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/numeric-type.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/numeric-type.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/on-commit-option.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/on-commit-option.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-direction.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-direction.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-null-rule.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-null-rule.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/parsed-script.d.ts +80 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/parsed-script.js +250 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-block-behavior.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-block-behavior.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-strength.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-strength.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/sample-count-unit.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/sample-count-unit.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanned-script.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanned-script.js +125 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-token-type.d.ts +15 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-token-type.js +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-tokens.d.ts +59 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-tokens.js +156 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target-type.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target-type.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target.js +80 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-type.d.ts +22 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-type.js +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement.d.ts +67 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement.js +234 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/subquery-quantifier.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/subquery-quantifier.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/symbol-span.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/symbol-span.js +55 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/table-constraint.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/table-constraint.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/temp-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/temp-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/text-span.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/text-span.js +55 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/trim-direction.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/trim-direction.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-direction.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-direction.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-exclusion-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-exclusion-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-range-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-range-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser.js +110 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/derived-profile-layout-config.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/derived-profile-layout-config.js +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-attribute.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-attribute.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-engine.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-engine.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-entity.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-entity.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-execution-status.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-execution-status.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-fragment.d.ts +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-fragment.js +147 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-config.d.ts +95 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-config.js +219 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-orientation.d.ts +14 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-orientation.js +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-rect.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-rect.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-cross-edge.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-cross-edge.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-edge.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-edge.js +103 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-kind.d.ts +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-kind.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator.d.ts +124 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator.js +288 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-pipeline.d.ts +51 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-pipeline.js +117 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot-role.d.ts +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot-role.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot.js +77 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats-field.d.ts +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats-field.js +22 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats.d.ts +102 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats.js +233 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-update-event.d.ts +50 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-update-event.js +122 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile-events.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile-events.js +91 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile.d.ts +170 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile.js +398 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-memory-statistics.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-memory-statistics.js +65 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-memory-statistics.d.ts +57 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-memory-statistics.js +131 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-timings.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-timings.js +75 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-statistics.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-statistics.js +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics.js +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/status/status-code.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/status/status-code.js +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/status.d.ts +1 -0
- package/dist/gen/flatbuffers/dashql/buffers/status.js +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/dashboard-spec.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/dashboard-spec.js +115 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node-type.d.ts +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node-type.js +23 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node.js +202 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-spec.d.ts +32 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-spec.js +90 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/table-spec.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/table-spec.js +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization.js +19 -0
- package/dist/gen/jsonschema/app_folder.d.ts +26 -0
- package/dist/gen/jsonschema/app_manifest.d.ts +281 -0
- package/dist/gen/jsonschema/app_workbook.d.ts +355 -0
- package/dist/gen/jsonschema/auth.d.ts +273 -0
- package/dist/gen/jsonschema/connection.d.ts +1609 -0
- package/dist/gen/protobuf/google/protobuf/any_pb.d.ts +24 -0
- package/dist/gen/protobuf/google/protobuf/any_pb.js +7 -0
- package/dist/gen/protobuf/google/protobuf/empty_pb.d.ts +15 -0
- package/dist/gen/protobuf/google/protobuf/empty_pb.js +7 -0
- package/dist/gen/protobuf/google/rpc/status_pb.d.ts +29 -0
- package/dist/gen/protobuf/google/rpc/status_pb.js +18 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/error_details_pb.d.ts +62 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/error_details_pb.js +23 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/hyper_service_pb.d.ts +386 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/hyper_service_pb.js +199 -0
- package/dist/hyperdb-edge/node/runtime_check.d.ts +21 -0
- package/dist/hyperdb-edge/node/runtime_check.js +66 -0
- package/dist/platform/channel_common.d.ts +24 -0
- package/dist/platform/channel_common.js +15 -0
- package/dist/platform/compute/arrow_formatter.d.ts +43 -0
- package/dist/platform/compute/arrow_formatter.js +450 -0
- package/dist/platform/compute/computation_types.d.ts +100 -0
- package/dist/platform/compute/computation_types.js +150 -0
- package/dist/platform/compute/query_result_search_sql.d.ts +10 -0
- package/dist/platform/compute/query_result_search_sql.js +34 -0
- package/dist/platform/connections/clfn_spec.d.ts +97 -0
- package/dist/platform/connections/clfn_spec.js +0 -0
- package/dist/platform/connections/clfn_specs.d.ts +4 -0
- package/dist/platform/connections/clfn_specs.js +12 -0
- package/dist/platform/connections/connection_params.d.ts +19 -0
- package/dist/platform/connections/connection_params.js +63 -0
- package/dist/platform/connections/connection_state.d.ts +24 -0
- package/dist/platform/connections/connection_state.js +29 -0
- package/dist/platform/connections/connector_configs.d.ts +18 -0
- package/dist/platform/connections/connector_configs.js +12 -0
- package/dist/platform/connections/connector_descriptor.d.ts +20 -0
- package/dist/platform/connections/connector_descriptor.js +37 -0
- package/dist/platform/connections/connector_info.d.ts +33 -0
- package/dist/platform/connections/connector_info.js +95 -0
- package/dist/platform/connections/embedded_database_channel.d.ts +20 -0
- package/dist/platform/connections/embedded_database_channel.js +133 -0
- package/dist/platform/connections/hyper/hyper_error_info.d.ts +41 -0
- package/dist/platform/connections/hyper/hyper_error_info.js +117 -0
- package/dist/platform/connections/hyper/hyperdb_grpc_client.d.ts +26 -0
- package/dist/platform/connections/hyper/hyperdb_grpc_client.js +0 -0
- package/dist/platform/connections/hyper/local_cloud.d.ts +15 -0
- package/dist/platform/connections/hyper/local_cloud.js +14 -0
- package/dist/platform/connections/query_channel.d.ts +3 -0
- package/dist/platform/connections/query_channel.js +11 -0
- package/dist/platform/connections/query_execution.d.ts +19 -0
- package/dist/platform/connections/query_execution.js +24 -0
- package/dist/platform/connections/query_execution_args.d.ts +24 -0
- package/dist/platform/connections/query_execution_args.js +0 -0
- package/dist/platform/connections/salesforce/salesforce_api_client.d.ts +10 -0
- package/dist/platform/connections/salesforce/salesforce_api_client.js +14 -0
- package/dist/platform/connections/salesforce/salesforce_api_client_mock.d.ts +16 -0
- package/dist/platform/connections/salesforce/salesforce_connection_state.d.ts +2 -0
- package/dist/platform/connections/salesforce/salesforce_connection_state.js +7 -0
- package/dist/platform/connections/trino_catalogs.d.ts +4 -0
- package/dist/platform/connections/trino_catalogs.js +11 -0
- package/dist/platform/electron_fs.d.ts +4 -0
- package/dist/platform/electron_fs.js +21 -0
- package/dist/platform/embedded_database.d.ts +55 -0
- package/dist/platform/embedded_database.js +5 -0
- package/dist/platform/file_system.d.ts +36 -0
- package/dist/platform/file_system.js +5 -0
- package/dist/platform/http_client.d.ts +16 -0
- package/dist/platform/http_client.js +0 -0
- package/dist/platform/hyper_link_target.d.ts +8 -0
- package/dist/platform/hyper_link_target.js +35 -0
- package/dist/platform/hyperdb/hyperdb_arrow_insert.d.ts +7 -0
- package/dist/platform/hyperdb/hyperdb_arrow_insert.js +119 -0
- package/dist/platform/hyperdb/hyperdb_opfs_instance.d.ts +24 -0
- package/dist/platform/hyperdb/hyperdb_opfs_instance.js +117 -0
- package/dist/platform/hyperdb/hyperdb_parquet_export.d.ts +9 -0
- package/dist/platform/hyperdb/hyperdb_parquet_export.js +42 -0
- package/dist/platform/hyperdb/hyperdb_settings.d.ts +25 -0
- package/dist/platform/hyperdb/hyperdb_settings.js +32 -0
- package/dist/platform/hyperdb/hyperdb_wasm.d.ts +94 -0
- package/dist/platform/hyperdb/hyperdb_wasm.js +494 -0
- package/dist/platform/key_value_storage.d.ts +4 -0
- package/dist/platform/key_value_storage.js +0 -0
- package/dist/platform/logger/log_buffer.d.ts +53 -0
- package/dist/platform/logger/log_buffer.js +126 -0
- package/dist/platform/logger/logger.d.ts +57 -0
- package/dist/platform/logger/logger.js +181 -0
- package/dist/platform/logger/trace_context.d.ts +14 -0
- package/dist/platform/logger/trace_context.js +32 -0
- package/dist/platform/node/node_core.d.ts +3 -0
- package/dist/platform/node/node_core.js +17 -0
- package/dist/platform/node/node_directory_handle.d.ts +44 -0
- package/dist/platform/node/node_directory_handle.js +185 -0
- package/dist/platform/node/node_file_system.d.ts +3 -0
- package/dist/platform/node/node_file_system.js +108 -0
- package/dist/platform/node/node_hyperdb.d.ts +21 -0
- package/dist/platform/node/node_hyperdb.js +113 -0
- package/dist/platform/node/node_instance_locks.d.ts +2 -0
- package/dist/platform/node/node_instance_locks.js +37 -0
- package/dist/platform/node/node_locks.d.ts +20 -0
- package/dist/platform/node/node_locks.js +64 -0
- package/dist/platform/oauth_flow.d.ts +16 -0
- package/dist/platform/oauth_flow.js +0 -0
- package/dist/platform/oauth_types.d.ts +23 -0
- package/dist/platform/oauth_types.js +0 -0
- package/dist/platform/opfs_root.d.ts +5 -0
- package/dist/platform/opfs_root.js +19 -0
- package/dist/platform/proto.d.ts +11 -0
- package/dist/platform/proto.js +15 -0
- package/dist/platform/query/profile_execution_state.d.ts +21 -0
- package/dist/platform/query/profile_execution_state.js +60 -0
- package/dist/platform/query/profile_layout_config.d.ts +5 -0
- package/dist/platform/query/profile_layout_config.js +32 -0
- package/dist/platform/query/profile_operator_symbol.d.ts +6 -0
- package/dist/platform/query/profile_operator_symbol.js +50 -0
- package/dist/platform/query/query_execution_state.d.ts +65 -0
- package/dist/platform/query/query_execution_state.js +33 -0
- package/dist/platform/query/query_progress.d.ts +42 -0
- package/dist/platform/query/query_progress.js +78 -0
- package/dist/platform/query/query_result_cache.d.ts +47 -0
- package/dist/platform/query/query_result_cache.js +8 -0
- package/dist/platform/session/agent_session_client.d.ts +21 -0
- package/dist/platform/session/agent_session_client.js +142 -0
- package/dist/platform/session/agent_session_protocol.d.ts +15 -0
- package/dist/platform/session/agent_session_protocol.js +43 -0
- package/dist/platform/session/agent_session_state.d.ts +60 -0
- package/dist/platform/session/agent_session_state.js +100 -0
- package/dist/platform/session/workbook_journal.d.ts +77 -0
- package/dist/platform/session/workbook_journal.js +184 -0
- package/dist/platform/sql/sql_format.d.ts +9 -0
- package/dist/platform/sql/sql_format.js +40 -0
- package/dist/platform/sql/sql_lint.d.ts +27 -0
- package/dist/platform/sql/sql_lint.js +69 -0
- package/dist/platform/sql/sql_report.d.ts +18 -0
- package/dist/platform/sql/sql_report.js +80 -0
- package/dist/platform/storage/native_storage_backend.d.ts +48 -0
- package/dist/platform/storage/native_storage_backend.js +194 -0
- package/dist/platform/storage/opfs_query_result_cache.d.ts +15 -0
- package/dist/platform/storage/opfs_query_result_cache.js +237 -0
- package/dist/platform/storage/storage_backend.d.ts +89 -0
- package/dist/platform/storage/storage_backend.js +53 -0
- package/dist/platform/storage/storage_root.d.ts +2 -0
- package/dist/platform/storage/storage_root.js +90 -0
- package/dist/platform/storage/storage_versions.d.ts +3 -0
- package/dist/platform/storage/storage_versions.js +13 -0
- package/dist/platform/storage/workbook_tables.d.ts +92 -0
- package/dist/platform/storage/workbook_tables.js +57 -0
- package/dist/platform/storage/workbook_tree.d.ts +29 -0
- package/dist/platform/storage/workbook_tree.js +161 -0
- package/dist/platform/utils/arrow_vectors.d.ts +6 -0
- package/dist/platform/utils/arrow_vectors.js +82 -0
- package/dist/platform/utils/async_consumer.d.ts +14 -0
- package/dist/platform/utils/async_consumer.js +24 -0
- package/dist/platform/utils/async_value.d.ts +20 -0
- package/dist/platform/utils/async_value.js +50 -0
- package/dist/platform/utils/base64.d.ts +19 -0
- package/dist/platform/utils/base64.js +162 -0
- package/dist/platform/utils/crc32.d.ts +6 -0
- package/dist/platform/utils/crc32.js +34 -0
- package/dist/platform/utils/error.d.ts +4 -0
- package/dist/platform/utils/error.js +0 -0
- package/dist/platform/utils/int128.d.ts +7 -0
- package/dist/platform/utils/int128.js +35 -0
- package/dist/platform/utils/pkce.d.ts +2 -0
- package/dist/platform/utils/pkce.js +12 -0
- package/dist/platform/utils/progress.d.ts +14 -0
- package/dist/platform/utils/progress.js +44 -0
- package/dist/platform/utils/sleep.d.ts +1 -0
- package/dist/platform/utils/sleep.js +5 -0
- package/dist/platform/utils/sql_quote.d.ts +2 -0
- package/dist/platform/utils/sql_quote.js +8 -0
- package/dist/platform/utils/variant.d.ts +5 -0
- package/dist/platform/utils/variant.js +0 -0
- package/dist/platform/utils/yield_to_browser.d.ts +1 -0
- package/dist/platform/utils/yield_to_browser.js +5 -0
- package/dist/platform/web_http_client.d.ts +7 -0
- package/dist/platform/web_http_client.js +12 -0
- package/dist/platform/workbook/attachment_mirror.d.ts +2 -0
- package/dist/platform/workbook/attachment_mirror.js +25 -0
- package/dist/platform/workbook/attachment_mounts.d.ts +5 -0
- package/dist/platform/workbook/attachment_mounts.js +62 -0
- package/dist/platform/workbook/script_compilation.d.ts +4 -0
- package/dist/platform/workbook/script_compilation.js +52 -0
- package/dist/platform/workbook/script_editor_state.d.ts +12 -0
- package/dist/platform/workbook/script_editor_state.js +0 -0
- package/dist/platform/workbook/script_reference_check.d.ts +27 -0
- package/dist/platform/workbook/script_reference_check.js +59 -0
- package/dist/platform/workbook/script_types.d.ts +53 -0
- package/dist/platform/workbook/script_types.js +21 -0
- package/dist/platform/workbook/workbook_attachments.d.ts +3 -0
- package/dist/platform/workbook/workbook_attachments.js +9 -0
- package/dist/platform/workbook/workbook_execution.d.ts +31 -0
- package/dist/platform/workbook/workbook_execution.js +28 -0
- package/dist/platform/workbook/workbook_inputs.d.ts +41 -0
- package/dist/platform/workbook/workbook_inputs.js +94 -0
- package/dist/platform/workbook/workbook_scripts.d.ts +58 -0
- package/dist/platform/workbook/workbook_scripts.js +21 -0
- package/dist/platform/workbook/workbook_zip.d.ts +5 -0
- package/dist/platform/workbook/workbook_zip.js +28 -0
- package/dist/runtime/compute_database.d.ts +18 -0
- package/dist/runtime/compute_database.js +56 -0
- package/dist/runtime/compute_platform.d.ts +5 -0
- package/dist/runtime/compute_platform.js +76 -0
- package/dist/runtime/embedded_session.d.ts +8 -0
- package/dist/runtime/embedded_session.js +23 -0
- package/dist/runtime/node/node_platform.d.ts +12 -0
- package/dist/runtime/node/node_platform.js +23 -0
- package/dist/runtime/platform_requests.d.ts +18 -0
- package/dist/runtime/platform_requests.js +104 -0
- package/dist/runtime/query/cache_pins.d.ts +8 -0
- package/dist/runtime/query/cache_pins.js +27 -0
- package/dist/runtime/query/query_channels.d.ts +34 -0
- package/dist/runtime/query/query_channels.js +250 -0
- package/dist/runtime/query/query_projection.d.ts +4 -0
- package/dist/runtime/query/query_projection.js +41 -0
- package/dist/runtime/query/query_result_stream.d.ts +15 -0
- package/dist/runtime/query/query_result_stream.js +100 -0
- package/dist/runtime/run_mounts.d.ts +6 -0
- package/dist/runtime/run_mounts.js +44 -0
- package/dist/runtime/runtime.d.ts +150 -0
- package/dist/runtime/runtime.js +429 -0
- package/dist/runtime/runtime_storage.d.ts +47 -0
- package/dist/runtime/runtime_storage.js +118 -0
- package/dist/runtime/store/handles.d.ts +30 -0
- package/dist/runtime/store/handles.js +46 -0
- package/dist/runtime/store/projection.d.ts +8 -0
- package/dist/runtime/store/projection.js +51 -0
- package/dist/runtime/store/runtime_store.d.ts +53 -0
- package/dist/runtime/store/runtime_store.js +195 -0
- package/dist/runtime/store/runtime_tables.d.ts +10 -0
- package/dist/runtime/store/runtime_tables.js +115 -0
- package/dist/runtime/store/update_scheduler.d.ts +6 -0
- package/dist/runtime/store/update_scheduler.js +7 -0
- package/dist/runtime/workbook_archives.d.ts +7 -0
- package/dist/runtime/workbook_archives.js +103 -0
- package/dist/runtime/workbook_projection.d.ts +28 -0
- package/dist/runtime/workbook_projection.js +178 -0
- package/dist/wasm/dashql_core.d.ts +4184 -0
- package/dist/wasm/dashql_core.js +4519 -0
- package/dist/wasm/dashql_core.wasm +0 -0
- package/dist/wasm/dashql_dataflow.d.ts +148 -0
- package/dist/wasm/dashql_dataflow.js +474 -0
- package/dist/wasm/dashql_dataflow.wasm +0 -0
- package/package.json +44 -4
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import { EditorUpdateStatus } from "../gen/flatbuffers/dashql/buffers/editor/editor-update-status.js";
|
|
2
|
+
import { EditorUpdate } from "../gen/flatbuffers/dashql/buffers/editor/editor-update.js";
|
|
3
|
+
import { takeKnownAnalysis } from "../core/api.js";
|
|
4
|
+
import { readFlatBuffer } from "../core/flatbuffer_view.js";
|
|
5
|
+
import "../core/index.js";
|
|
6
|
+
import { clientContextJson, createComputePlatform } from "./compute_platform.js";
|
|
7
|
+
import { ComputeDatabase } from "./compute_database.js";
|
|
8
|
+
import { stringifyError } from "../platform/logger/logger.js";
|
|
9
|
+
import { HandleTable } from "./store/handles.js";
|
|
10
|
+
import { RuntimeStore } from "./store/runtime_store.js";
|
|
11
|
+
import { createRuntimeTables, isArrowTable } from "./store/runtime_tables.js";
|
|
12
|
+
import { QueryChannels } from "./query/query_channels.js";
|
|
13
|
+
import { createQueryProjection } from "./query/query_projection.js";
|
|
14
|
+
import { createProgressLayoutConfig } from "../platform/query/profile_layout_config.js";
|
|
15
|
+
import { createConnectionAction } from "../platform/connections/connection_state.js";
|
|
16
|
+
import { loadClientFunctionSpec } from "../platform/connections/clfn_specs.js";
|
|
17
|
+
import { PlatformRequests } from "./platform_requests.js";
|
|
18
|
+
import { StorageCommands, createRuntimeStorage } from "./runtime_storage.js";
|
|
19
|
+
import { ScriptProjection, WORKBOOK_PROJECTION, WorkbookDerivedProjection } from "./workbook_projection.js";
|
|
20
|
+
import { createRunMounts } from "./run_mounts.js";
|
|
21
|
+
import { CachePins } from "./query/cache_pins.js";
|
|
22
|
+
import { scriptRunEvent, workbookRunError } from "../platform/workbook/workbook_execution.js";
|
|
23
|
+
import { WORKBOOK_TABLE_NAMES, emptyWorkbookTables, provideWorkbookTables } from "../platform/storage/workbook_tables.js";
|
|
24
|
+
import { provideStorageVersions } from "../platform/storage/storage_versions.js";
|
|
25
|
+
import * as flatbuffers from "flatbuffers";
|
|
26
|
+
// dist/.stage/src/runtime/runtime.ts
|
|
27
|
+
var LOG_CTX = "runtime";
|
|
28
|
+
function runError(outcome, value) {
|
|
29
|
+
return outcome.failure == null ? null : workbookRunError(outcome.failure, value);
|
|
30
|
+
}
|
|
31
|
+
function createRuntime(options) {
|
|
32
|
+
return new Runtime(options);
|
|
33
|
+
}
|
|
34
|
+
function destroyedError() {
|
|
35
|
+
return /* @__PURE__ */ new Error("the runtime was destroyed");
|
|
36
|
+
}
|
|
37
|
+
var Runtime = class {
|
|
38
|
+
handles = new HandleTable();
|
|
39
|
+
store;
|
|
40
|
+
storage;
|
|
41
|
+
computeDatabase;
|
|
42
|
+
options;
|
|
43
|
+
logger;
|
|
44
|
+
core;
|
|
45
|
+
module;
|
|
46
|
+
tables;
|
|
47
|
+
queries;
|
|
48
|
+
pins = new CachePins();
|
|
49
|
+
catalogs = /* @__PURE__ */ new Map();
|
|
50
|
+
requests;
|
|
51
|
+
scriptProjection;
|
|
52
|
+
stopping = false;
|
|
53
|
+
freed = false;
|
|
54
|
+
destroying = null;
|
|
55
|
+
constructor(options) {
|
|
56
|
+
this.options = options;
|
|
57
|
+
this.logger = options.logger;
|
|
58
|
+
this.core = options.core;
|
|
59
|
+
this.store = new RuntimeStore(this.handles, options.scheduler, (message) => this.logger.error(message, {}, LOG_CTX));
|
|
60
|
+
this.storage = new StorageCommands(this);
|
|
61
|
+
this.computeDatabase = new ComputeDatabase(options.computeDatabase ?? null);
|
|
62
|
+
this.requests = new PlatformRequests(options);
|
|
63
|
+
this.tables = createRuntimeTables(this.handles);
|
|
64
|
+
const database = this.computeDatabase.available ? () => this.computeDatabase.get() : null;
|
|
65
|
+
this.queries = new QueryChannels({
|
|
66
|
+
logger: this.logger,
|
|
67
|
+
handles: this.handles,
|
|
68
|
+
tables: this.tables,
|
|
69
|
+
computeDatabase: database,
|
|
70
|
+
resultCache: options.resultCache ?? null,
|
|
71
|
+
pins: this.pins
|
|
72
|
+
});
|
|
73
|
+
provideWorkbookTables(this.core);
|
|
74
|
+
provideStorageVersions(this.core);
|
|
75
|
+
this.module = this.core.createRuntime(this.modulePlatform(database));
|
|
76
|
+
this.module.setProgressLayout(createProgressLayoutConfig());
|
|
77
|
+
this.module.runCatalogLoader(options.catalogLoader !== false);
|
|
78
|
+
this.scriptProjection = new ScriptProjection(this.core, this.module);
|
|
79
|
+
this.store.attach(this.module, {
|
|
80
|
+
query: createQueryProjection(this.core, this.module),
|
|
81
|
+
script: this.scriptProjection,
|
|
82
|
+
workbook: WORKBOOK_PROJECTION,
|
|
83
|
+
workbookDerived: new WorkbookDerivedProjection()
|
|
84
|
+
});
|
|
85
|
+
this.store.subscribeKind("connection", () => {
|
|
86
|
+
const live = new Set([...this.store.all("connection").values()].map((connection) => connection.catalogId));
|
|
87
|
+
for (const catalogId of [...this.catalogs.keys()]) if (!live.has(catalogId)) this.catalogs.delete(catalogId);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
live() {
|
|
91
|
+
if (this.stopping) throw destroyedError();
|
|
92
|
+
return this.module;
|
|
93
|
+
}
|
|
94
|
+
modulePlatform(database) {
|
|
95
|
+
const logger = this.logger;
|
|
96
|
+
const platform = this.options;
|
|
97
|
+
return {
|
|
98
|
+
clock: {
|
|
99
|
+
now: () => Date.now(),
|
|
100
|
+
sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
101
|
+
},
|
|
102
|
+
log: (level, message, details, target) => logger[level](message, Object.fromEntries(details), target ?? LOG_CTX),
|
|
103
|
+
handles: this.handles,
|
|
104
|
+
tables: this.tables,
|
|
105
|
+
compute: database == null ? null : createComputePlatform(database),
|
|
106
|
+
http: this.requests.http(),
|
|
107
|
+
channels: {
|
|
108
|
+
...this.queries.channels,
|
|
109
|
+
connect: async (setupId, request) => {
|
|
110
|
+
if (platform.channels == null) throw new Error(`The platform connects no ${request.type} channels`);
|
|
111
|
+
return this.handles.register(await platform.channels.connect(setupId, request));
|
|
112
|
+
},
|
|
113
|
+
hyperLinkToken: (connectionId) => platform.channels?.hyperLinkToken?.(connectionId) ?? null
|
|
114
|
+
},
|
|
115
|
+
resultCache: this.queries.resultCache,
|
|
116
|
+
mounts: database == null ? null : createRunMounts(database, platform.resultCache ?? null, this.handles, this.pins),
|
|
117
|
+
crypto: {
|
|
118
|
+
randomUuid: () => crypto.randomUUID(),
|
|
119
|
+
sha256: async (bytes) => new Uint8Array(await crypto.subtle.digest("SHA-256", bytes))
|
|
120
|
+
},
|
|
121
|
+
oauth: this.requests.oauth(),
|
|
122
|
+
extensions: { loadSpec: async (extension) => JSON.stringify(await loadClientFunctionSpec(extension)) },
|
|
123
|
+
storage: platform.storage == null ? null : createRuntimeStorage(platform.storage),
|
|
124
|
+
archives: platform.archives?.(this.handles) ?? null,
|
|
125
|
+
changed: (urgent) => this.store.changed(urgent)
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
async settled(command) {
|
|
129
|
+
try {
|
|
130
|
+
return await command;
|
|
131
|
+
} finally {
|
|
132
|
+
this.store.flush();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
dispatch(target, action) {
|
|
136
|
+
if (this.stopping) return {
|
|
137
|
+
ok: false,
|
|
138
|
+
changed: false,
|
|
139
|
+
error: destroyedError().message,
|
|
140
|
+
id: null
|
|
141
|
+
};
|
|
142
|
+
return this.module.dispatch(target, action);
|
|
143
|
+
}
|
|
144
|
+
async analyzeTable(tableId, table, options = {}) {
|
|
145
|
+
const module = this.live();
|
|
146
|
+
const handle = this.handles.register(table);
|
|
147
|
+
const analysis = module.analyzeTable(tableId, handle, {
|
|
148
|
+
connectionId: options.connectionId ?? void 0,
|
|
149
|
+
clientContext: clientContextJson(options.clientContext) ?? void 0,
|
|
150
|
+
columnAggregates: options.columnAggregates,
|
|
151
|
+
ordering: options.ordering
|
|
152
|
+
});
|
|
153
|
+
await this.settled(analysis);
|
|
154
|
+
}
|
|
155
|
+
async previewResult(tableId, limit) {
|
|
156
|
+
return await this.live().previewResult(tableId, limit);
|
|
157
|
+
}
|
|
158
|
+
table(handle) {
|
|
159
|
+
const table = this.handles.get(handle);
|
|
160
|
+
return isArrowTable(table) ? table : void 0;
|
|
161
|
+
}
|
|
162
|
+
createConnection(connection, connectionId) {
|
|
163
|
+
const outcome = this.dispatch("app", createConnectionAction(connection, connectionId));
|
|
164
|
+
if (!outcome.ok || typeof outcome.id !== "string") throw new Error(outcome.error ?? "the connection was not created");
|
|
165
|
+
this.store.flush();
|
|
166
|
+
const created = this.connection(outcome.id);
|
|
167
|
+
if (created == null) throw new Error(`the connection ${outcome.id} was not created`);
|
|
168
|
+
return created;
|
|
169
|
+
}
|
|
170
|
+
connection(connectionId) {
|
|
171
|
+
if (this.freed) return null;
|
|
172
|
+
const view = this.module.views("connection", [connectionId])[0] ?? null;
|
|
173
|
+
return view === "busy" ? this.store.get("connection", connectionId) : view;
|
|
174
|
+
}
|
|
175
|
+
catalog(connectionId) {
|
|
176
|
+
if (this.freed) return null;
|
|
177
|
+
const catalogId = this.module.catalogId(connectionId);
|
|
178
|
+
if (catalogId == null) return null;
|
|
179
|
+
let catalog = this.catalogs.get(catalogId) ?? null;
|
|
180
|
+
if (catalog == null) {
|
|
181
|
+
catalog = this.core.runtimeCatalog(this.module, connectionId);
|
|
182
|
+
if (catalog != null) this.catalogs.set(catalogId, catalog);
|
|
183
|
+
}
|
|
184
|
+
return catalog;
|
|
185
|
+
}
|
|
186
|
+
channel(connection) {
|
|
187
|
+
return this.handles.get(connection?.details.channel) ?? null;
|
|
188
|
+
}
|
|
189
|
+
async saveConnection(connectionId, params) {
|
|
190
|
+
return await this.settled(this.live().saveConnection(connectionId, params));
|
|
191
|
+
}
|
|
192
|
+
async retrySave(connectionId, workbookIds) {
|
|
193
|
+
return await this.settled(this.live().retrySave(connectionId, workbookIds));
|
|
194
|
+
}
|
|
195
|
+
async setupConnection(connectionId, options = {}) {
|
|
196
|
+
return await this.settled(this.live().setupConnection(connectionId, options));
|
|
197
|
+
}
|
|
198
|
+
cancelSetup(setupId) {
|
|
199
|
+
if (!this.stopping) this.module.cancelSetup(setupId);
|
|
200
|
+
}
|
|
201
|
+
setUpOpenedWorkbook(workbookId) {
|
|
202
|
+
if (!this.stopping) this.module.setUpOpenedWorkbook(workbookId);
|
|
203
|
+
}
|
|
204
|
+
refreshCatalog(connectionId, force) {
|
|
205
|
+
if (!this.stopping) this.module.refreshCatalog(connectionId, force);
|
|
206
|
+
}
|
|
207
|
+
openSession(connectionId) {
|
|
208
|
+
return this.live().openSession(connectionId);
|
|
209
|
+
}
|
|
210
|
+
closeSession(connectionId, lease) {
|
|
211
|
+
if (!this.stopping) this.module.closeSession(connectionId, lease);
|
|
212
|
+
}
|
|
213
|
+
async settleCatalog(connectionId, timeoutMs) {
|
|
214
|
+
await this.settled(this.live().settleCatalog(connectionId, timeoutMs));
|
|
215
|
+
}
|
|
216
|
+
async authenticateSalesforce(setupId, params, options, login = {}) {
|
|
217
|
+
const module = this.live();
|
|
218
|
+
return await this.requests.withLoginFlow(setupId, login.oauthFlow, () => module.authenticateSalesforce(setupId, params, options, login.onStep ?? null));
|
|
219
|
+
}
|
|
220
|
+
execute(connectionId, args) {
|
|
221
|
+
const replaced = this.options.queryCommands?.execute;
|
|
222
|
+
if (replaced != null) return replaced(connectionId, args);
|
|
223
|
+
if (this.stopping) return [0, Promise.reject(destroyedError())];
|
|
224
|
+
return this.queries.execute(this.module, connectionId, args);
|
|
225
|
+
}
|
|
226
|
+
async cancel(queryId) {
|
|
227
|
+
const replaced = this.options.queryCommands?.cancel;
|
|
228
|
+
if (replaced != null) return await replaced(queryId);
|
|
229
|
+
if (this.stopping) return;
|
|
230
|
+
await this.module.cancelQuery(queryId);
|
|
231
|
+
}
|
|
232
|
+
watchProfile(queryId) {
|
|
233
|
+
const replaced = this.options.queryCommands?.watchProfile;
|
|
234
|
+
if (replaced != null) return replaced(queryId);
|
|
235
|
+
if (this.stopping) return () => {};
|
|
236
|
+
this.module.watchProfile(queryId, true);
|
|
237
|
+
let watching = true;
|
|
238
|
+
return () => {
|
|
239
|
+
if (!watching || this.stopping) return;
|
|
240
|
+
watching = false;
|
|
241
|
+
this.module.watchProfile(queryId, false);
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
createWorkbook(connectionId, name, ephemeral, originalFileName, workbookId) {
|
|
245
|
+
const outcome = this.dispatch("app", {
|
|
246
|
+
kind: "createWorkbook",
|
|
247
|
+
value: {
|
|
248
|
+
connectionId,
|
|
249
|
+
name: name ?? void 0,
|
|
250
|
+
ephemeral,
|
|
251
|
+
originalFileName,
|
|
252
|
+
workbookId
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
if (!outcome.ok || typeof outcome.id !== "string") throw new Error(outcome.error ?? "the workbook was not created");
|
|
256
|
+
this.store.flush();
|
|
257
|
+
const created = this.store.get("workbook", outcome.id);
|
|
258
|
+
if (created == null) throw new Error(`the workbook ${outcome.id} was not created`);
|
|
259
|
+
return created;
|
|
260
|
+
}
|
|
261
|
+
deleteWorkbook(workbookId) {
|
|
262
|
+
this.dispatch("app", {
|
|
263
|
+
kind: "deleteWorkbook",
|
|
264
|
+
value: { workbookId }
|
|
265
|
+
});
|
|
266
|
+
this.store.flush();
|
|
267
|
+
}
|
|
268
|
+
applyEditorEvent(script, event, known) {
|
|
269
|
+
if (this.stopping) return null;
|
|
270
|
+
const knownKey = known == null ? null : this.scriptProjection.keyOf(known);
|
|
271
|
+
event.knownAnalysis = null;
|
|
272
|
+
const builder = new flatbuffers.Builder();
|
|
273
|
+
builder.finish(event.pack(builder));
|
|
274
|
+
let outcome;
|
|
275
|
+
try {
|
|
276
|
+
outcome = this.module.applyEditorEvent(script.workbookId, script.scriptKey, script.sessionGeneration, builder.asUint8Array(), knownKey);
|
|
277
|
+
} catch (e) {
|
|
278
|
+
this.logger.warn("Refused an editor event", {
|
|
279
|
+
workbookId: script.workbookId,
|
|
280
|
+
scriptKey: script.scriptKey.toString(),
|
|
281
|
+
error: stringifyError(e)
|
|
282
|
+
}, "workbook_editor");
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
if (outcome == null) return null;
|
|
286
|
+
const update = readFlatBuffer(outcome.update, (bb) => EditorUpdate.getRootAsEditorUpdate(bb)).unpack();
|
|
287
|
+
if (update.analysisOmitted && known != null) takeKnownAnalysis(update, known);
|
|
288
|
+
if (update.status === EditorUpdateStatus.OK) this.scriptProjection.hold(script.scriptKey, outcome.key, update);
|
|
289
|
+
return update;
|
|
290
|
+
}
|
|
291
|
+
attachTableParameters(workbookId, session) {
|
|
292
|
+
return !this.stopping && this.module.attachTableParameters(workbookId, session.ptr.assertNotNull());
|
|
293
|
+
}
|
|
294
|
+
async restore(progress) {
|
|
295
|
+
return await this.settled(this.live().restore(progress ?? null));
|
|
296
|
+
}
|
|
297
|
+
async restoreWorkbook(workbookId) {
|
|
298
|
+
return await this.settled(this.live().restoreWorkbook(workbookId));
|
|
299
|
+
}
|
|
300
|
+
async deleteInvalidWorkbook(workbookId) {
|
|
301
|
+
await this.settled(this.live().deleteInvalidWorkbook(workbookId));
|
|
302
|
+
}
|
|
303
|
+
async attachFiles(workbookId, files) {
|
|
304
|
+
return await this.settled(this.live().attachFiles(workbookId, [...files]));
|
|
305
|
+
}
|
|
306
|
+
async renameAttachment(workbookId, fileName, name) {
|
|
307
|
+
return await this.settled(this.live().renameAttachment(workbookId, fileName, name));
|
|
308
|
+
}
|
|
309
|
+
async refreshAttachments(workbookId) {
|
|
310
|
+
await this.settled(this.live().refreshAttachments(workbookId));
|
|
311
|
+
}
|
|
312
|
+
async runWorkbook(workbookId, options = {}, listener = {}) {
|
|
313
|
+
const script = listener.onScript;
|
|
314
|
+
const result = await this.settled(this.live().runWorkbook(workbookId, options, {
|
|
315
|
+
script: script == null ? void 0 : (file, event, value) => script(file, scriptRunEvent(event, value)),
|
|
316
|
+
prepareConnection: listener.prepareConnection
|
|
317
|
+
}));
|
|
318
|
+
return {
|
|
319
|
+
outcome: result.outcome,
|
|
320
|
+
error: runError(result.outcome, result.error)
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
async runScript(workbookId, scriptKey, options = {}) {
|
|
324
|
+
const result = await this.settled(this.live().runScript(workbookId, scriptKey, options));
|
|
325
|
+
return {
|
|
326
|
+
outcome: result.outcome,
|
|
327
|
+
error: runError(result.outcome, result.error)
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
stopRun(workbookId) {
|
|
331
|
+
if (!this.stopping) this.module.stopRun(workbookId);
|
|
332
|
+
}
|
|
333
|
+
async exportArchive(workbookId, options = {}) {
|
|
334
|
+
const outcome = await this.live().exportWorkbook(workbookId, {
|
|
335
|
+
...options,
|
|
336
|
+
format: "archive"
|
|
337
|
+
}, null);
|
|
338
|
+
const archive = this.handles.get(outcome.archive);
|
|
339
|
+
if (outcome.archive != null) this.handles.release(outcome.archive);
|
|
340
|
+
if (archive == null) throw new Error("the export wrote no archive");
|
|
341
|
+
return {
|
|
342
|
+
archive,
|
|
343
|
+
results: outcome.results
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
async exportLink(workbookId, linkBase, options = {}) {
|
|
347
|
+
const outcome = await this.live().exportWorkbook(workbookId, {
|
|
348
|
+
...options,
|
|
349
|
+
format: "link",
|
|
350
|
+
linkBase
|
|
351
|
+
}, null);
|
|
352
|
+
if (outcome.link == null) throw new Error("the export wrote no link");
|
|
353
|
+
return outcome.link;
|
|
354
|
+
}
|
|
355
|
+
async exportTables(workbookId, options, consume) {
|
|
356
|
+
return (await this.live().exportWorkbook(workbookId, {
|
|
357
|
+
...options,
|
|
358
|
+
format: "tables"
|
|
359
|
+
}, async (exported) => {
|
|
360
|
+
const tables = emptyWorkbookTables();
|
|
361
|
+
for (const name of WORKBOOK_TABLE_NAMES) tables[name] = exported.rows[name] ?? [];
|
|
362
|
+
for (const entry of exported.data) {
|
|
363
|
+
const file = this.handles.get(entry.file);
|
|
364
|
+
if (file == null) continue;
|
|
365
|
+
const bytes = file instanceof Blob ? file : new Blob([file]);
|
|
366
|
+
tables.data.set(entry.tableName, entry.crc32 == null ? { bytes } : {
|
|
367
|
+
bytes,
|
|
368
|
+
crc32: entry.crc32
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
await consume(tables);
|
|
372
|
+
})).results;
|
|
373
|
+
}
|
|
374
|
+
async importCachedResult(key, data) {
|
|
375
|
+
const module = this.live();
|
|
376
|
+
const file = this.handles.register(data);
|
|
377
|
+
try {
|
|
378
|
+
return await module.importCachedResult(key, file);
|
|
379
|
+
} finally {
|
|
380
|
+
this.handles.release(file);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
async readImport(source) {
|
|
384
|
+
const module = this.live();
|
|
385
|
+
if (!("archive" in source)) return await module.readImport(source);
|
|
386
|
+
const archive = this.handles.register(source.archive);
|
|
387
|
+
try {
|
|
388
|
+
return await module.readImport({ archive });
|
|
389
|
+
} finally {
|
|
390
|
+
this.handles.release(archive);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
async commitImport(importId, answers, onStep) {
|
|
394
|
+
return await this.settled(this.live().commitImport(importId, answers, onStep ?? null));
|
|
395
|
+
}
|
|
396
|
+
get destroyed() {
|
|
397
|
+
return this.stopping;
|
|
398
|
+
}
|
|
399
|
+
flush() {
|
|
400
|
+
this.store.flush();
|
|
401
|
+
}
|
|
402
|
+
destroy() {
|
|
403
|
+
this.destroying ??= (async () => {
|
|
404
|
+
this.stopping = true;
|
|
405
|
+
this.computeDatabase.close();
|
|
406
|
+
try {
|
|
407
|
+
this.store.flush();
|
|
408
|
+
await this.module.shutdown();
|
|
409
|
+
} catch (error) {
|
|
410
|
+
this.logger.error("The runtime failed to shut down", { error: stringifyError(error) }, LOG_CTX);
|
|
411
|
+
} finally {
|
|
412
|
+
await this.free();
|
|
413
|
+
}
|
|
414
|
+
})();
|
|
415
|
+
return this.destroying;
|
|
416
|
+
}
|
|
417
|
+
async free() {
|
|
418
|
+
this.store.flush();
|
|
419
|
+
this.scriptProjection.destroy();
|
|
420
|
+
this.freed = true;
|
|
421
|
+
this.catalogs.clear();
|
|
422
|
+
this.module.free();
|
|
423
|
+
this.store.dispose();
|
|
424
|
+
this.requests.abortAll();
|
|
425
|
+
this.queries.dispose();
|
|
426
|
+
await this.pins.close();
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
export { Runtime, createRuntime };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type * as core from '../core/index.js';
|
|
2
|
+
import type { StorageBackend } from '../platform/storage/storage_backend.js';
|
|
3
|
+
import { NativeStorageBackend } from '../platform/storage/native_storage_backend.js';
|
|
4
|
+
export type StorageWriteResult = {
|
|
5
|
+
status: 'written';
|
|
6
|
+
} | {
|
|
7
|
+
status: 'superseded';
|
|
8
|
+
} | {
|
|
9
|
+
status: 'cancelled';
|
|
10
|
+
} | {
|
|
11
|
+
status: 'deferred';
|
|
12
|
+
} | {
|
|
13
|
+
status: 'failed';
|
|
14
|
+
error: unknown;
|
|
15
|
+
};
|
|
16
|
+
export declare class WorkbookUnavailableError extends Error {
|
|
17
|
+
readonly workbookId: string;
|
|
18
|
+
constructor(workbookId: string, cause: unknown);
|
|
19
|
+
}
|
|
20
|
+
export declare function writeResultOf(outcome: core.StorageWriteOutcome): StorageWriteResult;
|
|
21
|
+
export interface NativeWorkbookRegistry {
|
|
22
|
+
registerNativeWorkbook(dir: string, workbookId: string): Promise<void>;
|
|
23
|
+
nativeWorkbookFolder(workbookId: string): NativeStorageBackend | null;
|
|
24
|
+
}
|
|
25
|
+
export declare function createRuntimeStorage(backend: StorageBackend): core.RuntimeStorage;
|
|
26
|
+
export declare class StorageCommands {
|
|
27
|
+
private readonly runtime;
|
|
28
|
+
constructor(runtime: {
|
|
29
|
+
readonly module: core.Runtime;
|
|
30
|
+
readonly destroyed: boolean;
|
|
31
|
+
});
|
|
32
|
+
private get module();
|
|
33
|
+
flush(options?: {
|
|
34
|
+
closing?: boolean;
|
|
35
|
+
}): Promise<void>;
|
|
36
|
+
settle(): Promise<void>;
|
|
37
|
+
hold(reason: core.StorageHoldReason, workbookId?: string | null): void;
|
|
38
|
+
release(reason: core.StorageHoldReason, workbookId?: string | null): void;
|
|
39
|
+
pause(): void;
|
|
40
|
+
resume(): void;
|
|
41
|
+
handOver(): Promise<void>;
|
|
42
|
+
discardWrites(keys: string[]): void;
|
|
43
|
+
flushWorkbook(workbookId: string): Promise<boolean>;
|
|
44
|
+
deleteWorkbook(workbookId: string): Promise<void>;
|
|
45
|
+
isWorkbookHeld(workbookId: string): boolean;
|
|
46
|
+
getStatistics(workbookId: string): core.StorageKeyStatistics[];
|
|
47
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { stringifyError } from "../platform/logger/logger.js";
|
|
2
|
+
import { isWorkbookRegistryBackend } from "../platform/storage/storage_backend.js";
|
|
3
|
+
import { NativeStorageBackend } from "../platform/storage/native_storage_backend.js";
|
|
4
|
+
import { markWorkbookAttachmentsChanged } from "../platform/workbook/attachment_mounts.js";
|
|
5
|
+
// dist/.stage/src/runtime/runtime_storage.ts
|
|
6
|
+
var WorkbookUnavailableError = class extends Error {
|
|
7
|
+
workbookId;
|
|
8
|
+
constructor(workbookId, cause) {
|
|
9
|
+
super(`workbook ${workbookId} is not available: ${stringifyError(cause)}`);
|
|
10
|
+
this.name = "WorkbookUnavailableError";
|
|
11
|
+
this.workbookId = workbookId;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
function writeResultOf(outcome) {
|
|
15
|
+
if (outcome.status !== "failed") return { status: outcome.status };
|
|
16
|
+
return {
|
|
17
|
+
status: "failed",
|
|
18
|
+
error: outcome.unavailableWorkbook != null ? new WorkbookUnavailableError(outcome.unavailableWorkbook, outcome.error) : outcome.error
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function createRuntimeStorage(backend) {
|
|
22
|
+
const registry = () => {
|
|
23
|
+
if (!isWorkbookRegistryBackend(backend)) throw new Error("the storage backend does not own a workbook registry");
|
|
24
|
+
return backend;
|
|
25
|
+
};
|
|
26
|
+
const owner = isWorkbookRegistryBackend(backend) ? backend : null;
|
|
27
|
+
return {
|
|
28
|
+
loadWorkbook: async (workbookId) => backend.loadWorkbook(workbookId),
|
|
29
|
+
saveWorkbook: async (workbookId, workbook, expected) => backend.saveWorkbookManifest(workbookId, workbook, expected),
|
|
30
|
+
saveScript: async (workbookId, fileName, text, expected) => backend.saveScript(workbookId, fileName, text, expected),
|
|
31
|
+
deleteScript: async (workbookId, fileName, expected) => backend.deleteScript(workbookId, fileName, expected),
|
|
32
|
+
renameScript: async (workbookId, from, to, expectedFrom, expectedTo) => backend.renameScript(workbookId, from, to, expectedFrom, expectedTo),
|
|
33
|
+
listAttachments: async (workbookId) => (await backend.listDataFiles(workbookId)).map((file) => file.name),
|
|
34
|
+
updateConnections: async (update) => registry().updateConnections((connections) => update(connections ?? null)),
|
|
35
|
+
saveConnectionFile: async (connectionId, fileName, text) => registry().saveConnectionFile(connectionId, fileName, text),
|
|
36
|
+
deleteConnectionFiles: async (connectionId) => registry().deleteConnectionFiles(connectionId),
|
|
37
|
+
deleteWorkbook: async (workbookId) => backend.deleteWorkbook(workbookId),
|
|
38
|
+
ownsConnections: () => owner != null,
|
|
39
|
+
listWorkbooks: async () => backend.listWorkbooks(),
|
|
40
|
+
loadManifestConnections: async () => (await owner?.loadManifest())?.connections ?? null,
|
|
41
|
+
loadScripts: async (workbookId) => (await backend.loadScripts(workbookId)).map((script) => ({
|
|
42
|
+
name: script.name,
|
|
43
|
+
sql: script.sql
|
|
44
|
+
})),
|
|
45
|
+
listDataFiles: async (workbookId) => backend.listDataFiles(workbookId),
|
|
46
|
+
loadConnectionFile: async (connectionId, fileName) => owner == null ? null : owner.loadConnectionFile(connectionId, fileName),
|
|
47
|
+
loadDataFile: async (workbookId, name) => backend.loadDataFile(workbookId, name),
|
|
48
|
+
saveDataFile: async (workbookId, name, file) => backend.saveDataFile(workbookId, name, file),
|
|
49
|
+
renameDataFile: async (workbookId, from, to) => backend.renameDataFile(workbookId, from, to),
|
|
50
|
+
upsertWorkbookEntry: async (entry) => registry().upsertWorkbookEntry(entry),
|
|
51
|
+
deleteWorkbookFiles: async (workbookId) => registry().deleteWorkbookFiles(workbookId),
|
|
52
|
+
registerNativeWorkbook: async (dir, workbookId) => {
|
|
53
|
+
const native = backend;
|
|
54
|
+
if (typeof native.registerNativeWorkbook !== "function") throw new Error("the storage registers no native workbook folders");
|
|
55
|
+
await native.registerNativeWorkbook(dir, workbookId);
|
|
56
|
+
},
|
|
57
|
+
workbookFolder: (workbookId) => backend instanceof NativeStorageBackend ? backend : backend.nativeWorkbookFolder?.(workbookId) ?? null,
|
|
58
|
+
attachmentsChanged: (workbookId) => markWorkbookAttachmentsChanged(workbookId)
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
var StorageCommands = class {
|
|
62
|
+
runtime;
|
|
63
|
+
constructor(runtime) {
|
|
64
|
+
this.runtime = runtime;
|
|
65
|
+
}
|
|
66
|
+
get module() {
|
|
67
|
+
return this.runtime.destroyed ? null : this.runtime.module;
|
|
68
|
+
}
|
|
69
|
+
async flush(options = {}) {
|
|
70
|
+
await this.module?.storage({
|
|
71
|
+
kind: "flush",
|
|
72
|
+
closing: options.closing ?? false
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
async settle() {
|
|
76
|
+
await this.module?.storage({ kind: "settle" });
|
|
77
|
+
}
|
|
78
|
+
hold(reason, workbookId = null) {
|
|
79
|
+
this.module?.storageHold(reason, workbookId);
|
|
80
|
+
}
|
|
81
|
+
release(reason, workbookId = null) {
|
|
82
|
+
this.module?.storageRelease(reason, workbookId);
|
|
83
|
+
}
|
|
84
|
+
pause() {
|
|
85
|
+
this.hold("pause");
|
|
86
|
+
}
|
|
87
|
+
resume() {
|
|
88
|
+
this.release("pause");
|
|
89
|
+
}
|
|
90
|
+
async handOver() {
|
|
91
|
+
await this.module?.storage({ kind: "handOver" });
|
|
92
|
+
}
|
|
93
|
+
discardWrites(keys) {
|
|
94
|
+
this.module?.storageDiscardWrites(keys);
|
|
95
|
+
}
|
|
96
|
+
async flushWorkbook(workbookId) {
|
|
97
|
+
const module = this.module;
|
|
98
|
+
return module != null && await module.storage({
|
|
99
|
+
kind: "flushWorkbook",
|
|
100
|
+
workbookId
|
|
101
|
+
}) === true;
|
|
102
|
+
}
|
|
103
|
+
async deleteWorkbook(workbookId) {
|
|
104
|
+
const module = this.module;
|
|
105
|
+
if (module == null) throw new Error("the runtime was destroyed");
|
|
106
|
+
await module.storage({
|
|
107
|
+
kind: "deleteWorkbook",
|
|
108
|
+
workbookId
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
isWorkbookHeld(workbookId) {
|
|
112
|
+
return this.module?.isWorkbookHeld(workbookId) ?? false;
|
|
113
|
+
}
|
|
114
|
+
getStatistics(workbookId) {
|
|
115
|
+
return this.module?.storageStatistics(workbookId) ?? [];
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
export { StorageCommands, WorkbookUnavailableError, createRuntimeStorage, writeResultOf };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type HandleEffect = {
|
|
2
|
+
type: 'release';
|
|
3
|
+
handle: number;
|
|
4
|
+
} | {
|
|
5
|
+
type: 'close';
|
|
6
|
+
handle: number;
|
|
7
|
+
} | {
|
|
8
|
+
type: 'abort';
|
|
9
|
+
handle: number;
|
|
10
|
+
reason: string;
|
|
11
|
+
};
|
|
12
|
+
export interface Abortable {
|
|
13
|
+
abort?(reason?: unknown): void;
|
|
14
|
+
}
|
|
15
|
+
export interface Closable {
|
|
16
|
+
close?(): unknown;
|
|
17
|
+
}
|
|
18
|
+
export declare class HandleTable {
|
|
19
|
+
private nextHandle;
|
|
20
|
+
private readonly objects;
|
|
21
|
+
register(object: unknown): number;
|
|
22
|
+
duplicate(handle: number): number;
|
|
23
|
+
set(handle: number, object: unknown): void;
|
|
24
|
+
get<T>(handle: number | null | undefined): T | undefined;
|
|
25
|
+
release(handle: number): void;
|
|
26
|
+
close(handle: number): void;
|
|
27
|
+
abort(handle: number, reason: string): void;
|
|
28
|
+
apply(effects: readonly HandleEffect[]): number[];
|
|
29
|
+
get size(): number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// dist/.stage/src/runtime/store/handles.ts
|
|
2
|
+
var HandleTable = class {
|
|
3
|
+
nextHandle = 1;
|
|
4
|
+
objects = /* @__PURE__ */ new Map();
|
|
5
|
+
register(object) {
|
|
6
|
+
const handle = this.nextHandle++;
|
|
7
|
+
this.objects.set(handle, object);
|
|
8
|
+
return handle;
|
|
9
|
+
}
|
|
10
|
+
duplicate(handle) {
|
|
11
|
+
if (!this.objects.has(handle)) throw new Error(`the handle ${handle} is unknown`);
|
|
12
|
+
return this.register(this.objects.get(handle));
|
|
13
|
+
}
|
|
14
|
+
set(handle, object) {
|
|
15
|
+
if (this.objects.has(handle)) this.objects.set(handle, object);
|
|
16
|
+
}
|
|
17
|
+
get(handle) {
|
|
18
|
+
return handle == null ? void 0 : this.objects.get(handle);
|
|
19
|
+
}
|
|
20
|
+
release(handle) {
|
|
21
|
+
this.objects.delete(handle);
|
|
22
|
+
}
|
|
23
|
+
close(handle) {
|
|
24
|
+
this.objects.get(handle)?.close?.();
|
|
25
|
+
}
|
|
26
|
+
abort(handle, reason) {
|
|
27
|
+
this.objects.get(handle)?.abort?.(new DOMException(reason, "AbortError"));
|
|
28
|
+
}
|
|
29
|
+
apply(effects) {
|
|
30
|
+
const releases = [];
|
|
31
|
+
for (const effect of effects) {
|
|
32
|
+
if (effect.type !== "abort") releases.push(effect.handle);
|
|
33
|
+
try {
|
|
34
|
+
if (effect.type === "close") this.close(effect.handle);
|
|
35
|
+
if (effect.type === "abort") this.abort(effect.handle, effect.reason);
|
|
36
|
+
} catch (e) {
|
|
37
|
+
console.warn(`the ${effect.type} of the handle ${effect.handle} failed`, e);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return releases;
|
|
41
|
+
}
|
|
42
|
+
get size() {
|
|
43
|
+
return this.objects.size;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export { HandleTable };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function share<T>(prev: T | null | undefined, next: T): T;
|
|
2
|
+
export declare class RevisionCache<K, V> {
|
|
3
|
+
private readonly entries;
|
|
4
|
+
get(id: K, revision: number, build: (prev: V | null) => V): V;
|
|
5
|
+
peek(id: K): V | undefined;
|
|
6
|
+
delete(id: K): void;
|
|
7
|
+
keys(): IterableIterator<K>;
|
|
8
|
+
}
|