@dialecte/core 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/hub.worker-B1HcVDhn.js +2 -0
- package/dist/diagnostics/diagnostics.d.ts +4 -0
- package/dist/diagnostics/diagnostics.d.ts.map +1 -1
- package/dist/diagnostics/types.d.ts +6 -1
- package/dist/diagnostics/types.d.ts.map +1 -1
- package/dist/dialecte/create-dialecte-project.d.ts +11 -0
- package/dist/dialecte/create-dialecte-project.d.ts.map +1 -0
- package/dist/dialecte/create-project-factory.d.ts +14 -0
- package/dist/dialecte/create-project-factory.d.ts.map +1 -0
- package/dist/dialecte/define-dialecte.d.ts +12 -0
- package/dist/dialecte/define-dialecte.d.ts.map +1 -0
- package/dist/dialecte/dialecte.constants.d.ts +4 -0
- package/dist/dialecte/dialecte.constants.d.ts.map +1 -0
- package/dist/dialecte/dialecte.types.d.ts +75 -0
- package/dist/dialecte/dialecte.types.d.ts.map +1 -0
- package/dist/dialecte/index.d.ts +4 -0
- package/dist/dialecte/index.d.ts.map +1 -0
- package/dist/{project-DIKdMMHx.js → dialecte-gIPrRzni.js} +8031 -8457
- package/dist/document/bind-extensions.d.ts +4 -1
- package/dist/document/bind-extensions.d.ts.map +1 -1
- package/dist/document/document.d.ts +58 -5
- package/dist/document/document.d.ts.map +1 -1
- package/dist/document/progress/progress.types.d.ts +21 -4
- package/dist/document/progress/progress.types.d.ts.map +1 -1
- package/dist/document/query/find/ancestor/find-ancestor.d.ts +2 -0
- package/dist/document/query/find/ancestor/find-ancestor.d.ts.map +1 -1
- package/dist/document/query/find/by-attribute/find-by-attributes.d.ts +4 -0
- package/dist/document/query/find/by-attribute/find-by-attributes.d.ts.map +1 -1
- package/dist/document/query/find/descendant/find-descendant.d.ts +2 -0
- package/dist/document/query/find/descendant/find-descendant.d.ts.map +1 -1
- package/dist/document/query/get/attribute/get-attribute.d.ts +4 -0
- package/dist/document/query/get/attribute/get-attribute.d.ts.map +1 -1
- package/dist/document/query/get/attribute/get-attributes.d.ts +4 -0
- package/dist/document/query/get/attribute/get-attributes.d.ts.map +1 -1
- package/dist/document/query/get/definition/get-definition.d.ts +2 -0
- package/dist/document/query/get/definition/get-definition.d.ts.map +1 -1
- package/dist/document/query/get/record/get-child.d.ts +2 -0
- package/dist/document/query/get/record/get-child.d.ts.map +1 -1
- package/dist/document/query/get/record/get-children.d.ts +2 -0
- package/dist/document/query/get/record/get-children.d.ts.map +1 -1
- package/dist/document/query/get/record/get-record.d.ts +2 -0
- package/dist/document/query/get/record/get-record.d.ts.map +1 -1
- package/dist/document/query/get/record/get-records-by-tagname.d.ts +2 -0
- package/dist/document/query/get/record/get-records-by-tagname.d.ts.map +1 -1
- package/dist/document/query/get/record/get-records.d.ts +2 -0
- package/dist/document/query/get/record/get-records.d.ts.map +1 -1
- package/dist/document/query/get/record/load-live-records.d.ts +2 -0
- package/dist/document/query/get/record/load-live-records.d.ts.map +1 -1
- package/dist/document/query/get/record/resolve-record.d.ts +2 -0
- package/dist/document/query/get/record/resolve-record.d.ts.map +1 -1
- package/dist/document/query/get/record/staged-lookup.d.ts +4 -0
- package/dist/document/query/get/record/staged-lookup.d.ts.map +1 -1
- package/dist/document/query/get/tree/get-tree.d.ts +6 -0
- package/dist/document/query/get/tree/get-tree.d.ts.map +1 -1
- package/dist/document/query/main.d.ts +50 -15
- package/dist/document/query/main.d.ts.map +1 -1
- package/dist/document/query/snapshot/collect-snapshot.d.ts +2 -0
- package/dist/document/query/snapshot/collect-snapshot.d.ts.map +1 -1
- package/dist/document/query/snapshot/get-snapshot.d.ts +2 -0
- package/dist/document/query/snapshot/get-snapshot.d.ts.map +1 -1
- package/dist/document/query/snapshot/records-to-tree.d.ts +2 -0
- package/dist/document/query/snapshot/records-to-tree.d.ts.map +1 -1
- package/dist/document/query/tree-filter/omit.d.ts +8 -0
- package/dist/document/query/tree-filter/omit.d.ts.map +1 -1
- package/dist/document/query/tree-filter/order.d.ts +5 -2
- package/dist/document/query/tree-filter/order.d.ts.map +1 -1
- package/dist/document/query/tree-filter/unwrap.d.ts +2 -0
- package/dist/document/query/tree-filter/unwrap.d.ts.map +1 -1
- package/dist/document/staged-operations.d.ts +5 -1
- package/dist/document/staged-operations.d.ts.map +1 -1
- package/dist/document/transaction/clone/clone.d.ts +2 -0
- package/dist/document/transaction/clone/clone.d.ts.map +1 -1
- package/dist/document/transaction/commit/commit.d.ts.map +1 -1
- package/dist/document/transaction/commit/merge-operations.d.ts +1 -1
- package/dist/document/transaction/commit/merge-operations.d.ts.map +1 -1
- package/dist/document/transaction/commit/summarize-operations.d.ts +16 -0
- package/dist/document/transaction/commit/summarize-operations.d.ts.map +1 -0
- package/dist/document/transaction/commit/summarize-operations.types.d.ts +17 -0
- package/dist/document/transaction/commit/summarize-operations.types.d.ts.map +1 -0
- package/dist/document/transaction/create/create.d.ts +2 -0
- package/dist/document/transaction/create/create.d.ts.map +1 -1
- package/dist/document/transaction/guard.d.ts +5 -0
- package/dist/document/transaction/guard.d.ts.map +1 -1
- package/dist/document/transaction/index.d.ts +2 -0
- package/dist/document/transaction/index.d.ts.map +1 -1
- package/dist/document/transaction/main.d.ts +46 -16
- package/dist/document/transaction/main.d.ts.map +1 -1
- package/dist/document/transaction/stage-operations.d.ts.map +1 -1
- package/dist/document/transaction/update/update.d.ts +2 -0
- package/dist/document/transaction/update/update.d.ts.map +1 -1
- package/dist/document/types.d.ts +3 -5
- package/dist/document/types.d.ts.map +1 -1
- package/dist/document/types.extensions.d.ts.map +1 -1
- package/dist/engine-store-CIEqgPUb.js +348 -0
- package/dist/engine.constants-DBMjMmV9.js +98 -0
- package/dist/engine.d.ts +9 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +15805 -0
- package/dist/errors/codes.d.ts +451 -0
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/errors/errors.constants.d.ts +3 -0
- package/dist/errors/errors.constants.d.ts.map +1 -0
- package/dist/errors/errors.d.ts +10 -0
- package/dist/errors/errors.d.ts.map +1 -1
- package/dist/errors/types.d.ts +14 -0
- package/dist/errors/types.d.ts.map +1 -1
- package/dist/helpers/assert-fixed.d.ts +3 -1
- package/dist/helpers/assert-fixed.d.ts.map +1 -1
- package/dist/helpers/assert-xml-characters.d.ts +35 -0
- package/dist/helpers/assert-xml-characters.d.ts.map +1 -0
- package/dist/helpers/assert-xml-characters.types.d.ts +26 -0
- package/dist/helpers/assert-xml-characters.types.d.ts.map +1 -0
- package/dist/helpers/assert-xsi-type.d.ts +4 -0
- package/dist/helpers/assert-xsi-type.d.ts.map +1 -1
- package/dist/helpers/converter.d.ts +21 -6
- package/dist/helpers/converter.d.ts.map +1 -1
- package/dist/helpers/evaluate-expectations.d.ts +21 -0
- package/dist/helpers/evaluate-expectations.d.ts.map +1 -0
- package/dist/helpers/evaluate-expectations.types.d.ts +31 -0
- package/dist/helpers/evaluate-expectations.types.d.ts.map +1 -0
- package/dist/helpers/guard.d.ts +24 -4
- package/dist/helpers/guard.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/merge-extensions.d.ts +2 -0
- package/dist/helpers/merge-extensions.d.ts.map +1 -1
- package/dist/helpers/read-attributes.d.ts +4 -0
- package/dist/helpers/read-attributes.d.ts.map +1 -1
- package/dist/helpers/standardizing.d.ts +10 -0
- package/dist/helpers/standardizing.d.ts.map +1 -1
- package/dist/helpers/strip-attributes.d.ts +2 -0
- package/dist/helpers/strip-attributes.d.ts.map +1 -1
- package/dist/helpers-DVShv41E.js +489 -0
- package/dist/helpers.js +3 -439
- package/dist/in-process-link-DBeAOZRp.js +2791 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -12
- package/dist/perf/create-perf.d.ts +8 -1
- package/dist/perf/create-perf.d.ts.map +1 -1
- package/dist/perf/index.d.ts +1 -1
- package/dist/perf/index.d.ts.map +1 -1
- package/dist/perf/noop-perf.d.ts.map +1 -1
- package/dist/perf/perf.types.d.ts +65 -6
- package/dist/perf/perf.types.d.ts.map +1 -1
- package/dist/project/index.d.ts +7 -5
- package/dist/project/index.d.ts.map +1 -1
- package/dist/project/io/export-blob.d.ts +5 -2
- package/dist/project/io/export-blob.d.ts.map +1 -1
- package/dist/project/io/export-document.d.ts +5 -4
- package/dist/project/io/export-document.d.ts.map +1 -1
- package/dist/project/io/index.d.ts +1 -1
- package/dist/project/io/index.d.ts.map +1 -1
- package/dist/project/io/init-empty-document.d.ts +2 -0
- package/dist/project/io/init-empty-document.d.ts.map +1 -1
- package/dist/project/io/run-export.d.ts +19 -0
- package/dist/project/io/run-export.d.ts.map +1 -0
- package/dist/project/io/run-export.types.d.ts +45 -0
- package/dist/project/io/run-export.types.d.ts.map +1 -0
- package/dist/project/io/run-import.d.ts +15 -0
- package/dist/project/io/run-import.d.ts.map +1 -0
- package/dist/project/io/run-import.types.d.ts +19 -0
- package/dist/project/io/run-import.types.d.ts.map +1 -0
- package/dist/project/io/store-runtime.constants.d.ts +6 -0
- package/dist/project/io/store-runtime.constants.d.ts.map +1 -0
- package/dist/project/io/store-runtime.d.ts +12 -0
- package/dist/project/io/store-runtime.d.ts.map +1 -0
- package/dist/project/io/store-runtime.types.d.ts +18 -0
- package/dist/project/io/store-runtime.types.d.ts.map +1 -0
- package/dist/project/project-channel.d.ts +11 -0
- package/dist/project/project-channel.d.ts.map +1 -0
- package/dist/project/project.constants.d.ts +12 -0
- package/dist/project/project.constants.d.ts.map +1 -0
- package/dist/project/project.d.ts +315 -31
- package/dist/project/project.d.ts.map +1 -1
- package/dist/project/state/document-lifecycle.d.ts +0 -12
- package/dist/project/state/document-lifecycle.d.ts.map +1 -1
- package/dist/project/state/document-state.d.ts +4 -0
- package/dist/project/state/document-state.d.ts.map +1 -1
- package/dist/project/types.d.ts +126 -60
- package/dist/project/types.d.ts.map +1 -1
- package/dist/project-key-Ch34EtFa.js +1435 -0
- package/dist/rolldown-runtime-CYdcPHCu.js +12 -0
- package/dist/running-operations-vnijBvn7.js +76 -0
- package/dist/same-json-value-C6kUaoyt.js +1603 -0
- package/dist/sqlite.d.ts +5 -0
- package/dist/sqlite.d.ts.map +1 -0
- package/dist/sqlite.js +2671 -0
- package/dist/sqlite3.wasm +0 -0
- package/dist/store/apply-record-patch.d.ts +13 -0
- package/dist/store/apply-record-patch.d.ts.map +1 -0
- package/dist/store/closing-connections.d.ts +7 -0
- package/dist/store/closing-connections.d.ts.map +1 -0
- package/dist/store/closing-connections.types.d.ts +13 -0
- package/dist/store/closing-connections.types.d.ts.map +1 -0
- package/dist/store/commit-progress.d.ts +10 -0
- package/dist/store/commit-progress.d.ts.map +1 -0
- package/dist/store/compare-by-id.d.ts +10 -0
- package/dist/store/compare-by-id.d.ts.map +1 -0
- package/dist/store/document-path.constants.d.ts +20 -0
- package/dist/store/document-path.constants.d.ts.map +1 -0
- package/dist/store/document-path.d.ts +75 -0
- package/dist/store/document-path.d.ts.map +1 -0
- package/dist/store/document-path.types.d.ts +11 -0
- package/dist/store/document-path.types.d.ts.map +1 -0
- package/dist/store/engine/client/check-engine-wire.d.ts +8 -0
- package/dist/store/engine/client/check-engine-wire.d.ts.map +1 -0
- package/dist/store/engine/client/client.constants.d.ts +30 -0
- package/dist/store/engine/client/client.constants.d.ts.map +1 -0
- package/dist/store/engine/client/client.types.d.ts +200 -0
- package/dist/store/engine/client/client.types.d.ts.map +1 -0
- package/dist/store/engine/client/engine-client.d.ts +15 -0
- package/dist/store/engine/client/engine-client.d.ts.map +1 -0
- package/dist/store/engine/client/engine-control.d.ts +16 -0
- package/dist/store/engine/client/engine-control.d.ts.map +1 -0
- package/dist/store/engine/client/heartbeat-watch.d.ts +17 -0
- package/dist/store/engine/client/heartbeat-watch.d.ts.map +1 -0
- package/dist/store/engine/client/hub-connector.d.ts +11 -0
- package/dist/store/engine/client/hub-connector.d.ts.map +1 -0
- package/dist/store/engine/client/hub-connector.types.d.ts +25 -0
- package/dist/store/engine/client/hub-connector.types.d.ts.map +1 -0
- package/dist/store/engine/client/worker-connector.d.ts +32 -0
- package/dist/store/engine/client/worker-connector.d.ts.map +1 -0
- package/dist/store/engine/creation-refusal.d.ts +10 -0
- package/dist/store/engine/creation-refusal.d.ts.map +1 -0
- package/dist/store/engine/dialecte-refusal.d.ts +18 -0
- package/dist/store/engine/dialecte-refusal.d.ts.map +1 -0
- package/dist/store/engine/engine-store.d.ts +163 -0
- package/dist/store/engine/engine-store.d.ts.map +1 -0
- package/dist/store/engine/engine-store.types.d.ts +53 -0
- package/dist/store/engine/engine-store.types.d.ts.map +1 -0
- package/dist/store/engine/engine.constants.d.ts +14 -0
- package/dist/store/engine/engine.constants.d.ts.map +1 -0
- package/dist/store/engine/engine.types.d.ts +165 -0
- package/dist/store/engine/engine.types.d.ts.map +1 -0
- package/dist/store/engine/host/engine-wire.d.ts +19 -0
- package/dist/store/engine/host/engine-wire.d.ts.map +1 -0
- package/dist/store/engine/host/heartbeat.d.ts +33 -0
- package/dist/store/engine/host/heartbeat.d.ts.map +1 -0
- package/dist/store/engine/host/host.constants.d.ts +13 -0
- package/dist/store/engine/host/host.constants.d.ts.map +1 -0
- package/dist/store/engine/host/host.types.d.ts +65 -0
- package/dist/store/engine/host/host.types.d.ts.map +1 -0
- package/dist/store/engine/host/store-events.d.ts +14 -0
- package/dist/store/engine/host/store-events.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-client.constants.d.ts +27 -0
- package/dist/store/engine/hub/hub-client.constants.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-client.d.ts +46 -0
- package/dist/store/engine/hub/hub-client.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-client.types.d.ts +208 -0
- package/dist/store/engine/hub/hub-client.types.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-protocol.types.d.ts +193 -0
- package/dist/store/engine/hub/hub-protocol.types.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-router.d.ts +9 -0
- package/dist/store/engine/hub/hub-router.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-shell.d.ts +13 -0
- package/dist/store/engine/hub/hub-shell.d.ts.map +1 -0
- package/dist/store/engine/hub/hub-shell.types.d.ts +64 -0
- package/dist/store/engine/hub/hub-shell.types.d.ts.map +1 -0
- package/dist/store/engine/hub/hub.constants.d.ts +33 -0
- package/dist/store/engine/hub/hub.constants.d.ts.map +1 -0
- package/dist/store/engine/hub/hub.types.d.ts +305 -0
- package/dist/store/engine/hub/hub.types.d.ts.map +1 -0
- package/dist/store/engine/hub/hub.worker.d.ts +2 -0
- package/dist/store/engine/hub/hub.worker.d.ts.map +1 -0
- package/dist/store/engine/hub/realm-host.d.ts +10 -0
- package/dist/store/engine/hub/realm-host.d.ts.map +1 -0
- package/dist/store/engine/hub/realm-host.types.d.ts +78 -0
- package/dist/store/engine/hub/realm-host.types.d.ts.map +1 -0
- package/dist/store/engine/project-key.d.ts +15 -0
- package/dist/store/engine/project-key.d.ts.map +1 -0
- package/dist/store/engine/wire/error-envelope.d.ts +25 -0
- package/dist/store/engine/wire/error-envelope.d.ts.map +1 -0
- package/dist/store/engine/wire/wire-values.d.ts +33 -0
- package/dist/store/engine/wire/wire-values.d.ts.map +1 -0
- package/dist/store/engine/wire/wire.constants.d.ts +116 -0
- package/dist/store/engine/wire/wire.constants.d.ts.map +1 -0
- package/dist/store/engine/wire/wire.types.d.ts +119 -0
- package/dist/store/engine/wire/wire.types.d.ts.map +1 -0
- package/dist/store/hub-public.d.ts +33 -0
- package/dist/store/hub-public.d.ts.map +1 -0
- package/dist/store/ignore-destroy-outcome.d.ts +6 -0
- package/dist/store/ignore-destroy-outcome.d.ts.map +1 -0
- package/dist/store/in-memory/in-memory-state.d.ts +46 -0
- package/dist/store/in-memory/in-memory-state.d.ts.map +1 -0
- package/dist/store/in-memory/in-memory-store.constants.d.ts +7 -0
- package/dist/store/in-memory/in-memory-store.constants.d.ts.map +1 -0
- package/dist/store/in-memory/in-memory-store.d.ts +105 -17
- package/dist/store/in-memory/in-memory-store.d.ts.map +1 -1
- package/dist/store/in-memory/types.d.ts +55 -1
- package/dist/store/in-memory/types.d.ts.map +1 -1
- package/dist/store/index.d.ts +8 -2
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/json-values.constants.d.ts +18 -0
- package/dist/store/json-values.constants.d.ts.map +1 -0
- package/dist/store/json-values.d.ts +40 -0
- package/dist/store/json-values.d.ts.map +1 -0
- package/dist/store/json-values.types.d.ts +18 -0
- package/dist/store/json-values.types.d.ts.map +1 -0
- package/dist/store/local/dexie-store.constants.d.ts +20 -0
- package/dist/store/local/dexie-store.constants.d.ts.map +1 -0
- package/dist/store/local/dexie-store.d.ts +134 -5
- package/dist/store/local/dexie-store.d.ts.map +1 -1
- package/dist/store/local/types.d.ts +6 -0
- package/dist/store/local/types.d.ts.map +1 -1
- package/dist/store/lost-write.d.ts +32 -0
- package/dist/store/lost-write.d.ts.map +1 -0
- package/dist/store/lost-write.types.d.ts +4 -0
- package/dist/store/lost-write.types.d.ts.map +1 -0
- package/dist/store/open-connections.d.ts +4 -0
- package/dist/store/open-connections.d.ts.map +1 -0
- package/dist/store/open-connections.types.d.ts +17 -0
- package/dist/store/open-connections.types.d.ts.map +1 -0
- package/dist/store/own-import.d.ts +10 -0
- package/dist/store/own-import.d.ts.map +1 -0
- package/dist/store/project-name.d.ts +10 -0
- package/dist/store/project-name.d.ts.map +1 -0
- package/dist/store/resolve-store.d.ts +28 -4
- package/dist/store/resolve-store.d.ts.map +1 -1
- package/dist/store/running-operations.d.ts +7 -0
- package/dist/store/running-operations.d.ts.map +1 -0
- package/dist/store/running-operations.types.d.ts +10 -0
- package/dist/store/running-operations.types.d.ts.map +1 -0
- package/dist/store/same-json-value.d.ts +9 -0
- package/dist/store/same-json-value.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/in-process-link.d.ts +20 -0
- package/dist/store/sqlite/adapter/in-process-link.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/in-process-link.types.d.ts +21 -0
- package/dist/store/sqlite/adapter/in-process-link.types.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/realm-storage.d.ts +10 -0
- package/dist/store/sqlite/adapter/realm-storage.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-connector.d.ts +14 -0
- package/dist/store/sqlite/adapter/sqlite-connector.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-engine-settings.d.ts +4 -0
- package/dist/store/sqlite/adapter/sqlite-engine-settings.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts +8 -0
- package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts +5 -0
- package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts +8 -0
- package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts.map +1 -0
- package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts +5 -0
- package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts.map +1 -0
- package/dist/store/sqlite/engine/blobs.d.ts +55 -0
- package/dist/store/sqlite/engine/blobs.d.ts.map +1 -0
- package/dist/store/sqlite/engine/bulk-insert.d.ts +31 -0
- package/dist/store/sqlite/engine/bulk-insert.d.ts.map +1 -0
- package/dist/store/sqlite/engine/commit.d.ts +20 -0
- package/dist/store/sqlite/engine/commit.d.ts.map +1 -0
- package/dist/store/sqlite/engine/device-cache.d.ts +13 -0
- package/dist/store/sqlite/engine/device-cache.d.ts.map +1 -0
- package/dist/store/sqlite/engine/engine-errors.d.ts +26 -0
- package/dist/store/sqlite/engine/engine-errors.d.ts.map +1 -0
- package/dist/store/sqlite/engine/engine.constants.d.ts +144 -0
- package/dist/store/sqlite/engine/engine.constants.d.ts.map +1 -0
- package/dist/store/sqlite/engine/engine.types.d.ts +361 -0
- package/dist/store/sqlite/engine/engine.types.d.ts.map +1 -0
- package/dist/store/sqlite/engine/history.d.ts +114 -0
- package/dist/store/sqlite/engine/history.d.ts.map +1 -0
- package/dist/store/sqlite/engine/import-queue.d.ts +7 -0
- package/dist/store/sqlite/engine/import-queue.d.ts.map +1 -0
- package/dist/store/sqlite/engine/import-target.d.ts +23 -0
- package/dist/store/sqlite/engine/import-target.d.ts.map +1 -0
- package/dist/store/sqlite/engine/import-window.d.ts +23 -0
- package/dist/store/sqlite/engine/import-window.d.ts.map +1 -0
- package/dist/store/sqlite/engine/reclaim.d.ts +13 -0
- package/dist/store/sqlite/engine/reclaim.d.ts.map +1 -0
- package/dist/store/sqlite/engine/records.d.ts +117 -0
- package/dist/store/sqlite/engine/records.d.ts.map +1 -0
- package/dist/store/sqlite/engine/registry.d.ts +76 -0
- package/dist/store/sqlite/engine/registry.d.ts.map +1 -0
- package/dist/store/sqlite/engine/schema.d.ts +57 -0
- package/dist/store/sqlite/engine/schema.d.ts.map +1 -0
- package/dist/store/sqlite/engine/sqlite-engine.d.ts +14 -0
- package/dist/store/sqlite/engine/sqlite-engine.d.ts.map +1 -0
- package/dist/store/sqlite/engine/transaction.d.ts +12 -0
- package/dist/store/sqlite/engine/transaction.d.ts.map +1 -0
- package/dist/store/sqlite/list-projects.constants.d.ts +12 -0
- package/dist/store/sqlite/list-projects.constants.d.ts.map +1 -0
- package/dist/store/sqlite/list-projects.d.ts +22 -0
- package/dist/store/sqlite/list-projects.d.ts.map +1 -0
- package/dist/store/sqlite/list-projects.types.d.ts +28 -0
- package/dist/store/sqlite/list-projects.types.d.ts.map +1 -0
- package/dist/store/sqlite/load-sqlite.d.ts +11 -0
- package/dist/store/sqlite/load-sqlite.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/close-engine.d.ts +18 -0
- package/dist/store/sqlite/runtime/close-engine.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/install-pool.d.ts +94 -0
- package/dist/store/sqlite/runtime/install-pool.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/pool-header.d.ts +13 -0
- package/dist/store/sqlite/runtime/pool-header.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/progress-beat.d.ts +13 -0
- package/dist/store/sqlite/runtime/progress-beat.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/runtime.constants.d.ts +57 -0
- package/dist/store/sqlite/runtime/runtime.constants.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/runtime.types.d.ts +56 -0
- package/dist/store/sqlite/runtime/runtime.types.d.ts.map +1 -0
- package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts +16 -0
- package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts.map +1 -0
- package/dist/store/sqlite/sqlite-store-of.d.ts +7 -0
- package/dist/store/sqlite/sqlite-store-of.d.ts.map +1 -0
- package/dist/store/sqlite/sqlite-text.d.ts +20 -0
- package/dist/store/sqlite/sqlite-text.d.ts.map +1 -0
- package/dist/store/sqlite/sqlite-wasm-url.d.ts +9 -0
- package/dist/store/sqlite/sqlite-wasm-url.d.ts.map +1 -0
- package/dist/store/sqlite/sqlite.constants.d.ts +15 -0
- package/dist/store/sqlite/sqlite.constants.d.ts.map +1 -0
- package/dist/store/sqlite/sqlite.types.d.ts +36 -0
- package/dist/store/sqlite/sqlite.types.d.ts.map +1 -0
- package/dist/store/sqlite-storage.constants.d.ts +14 -0
- package/dist/store/sqlite-storage.constants.d.ts.map +1 -0
- package/dist/store/sqlite-storage.d.ts +22 -0
- package/dist/store/sqlite-storage.d.ts.map +1 -0
- package/dist/store/sqlite-storage.types.d.ts +24 -0
- package/dist/store/sqlite-storage.types.d.ts.map +1 -0
- package/dist/store/store-errors.d.ts +51 -0
- package/dist/store/store-errors.d.ts.map +1 -0
- package/dist/store/store.constants.d.ts +15 -3
- package/dist/store/store.constants.d.ts.map +1 -1
- package/dist/store/store.types.d.ts +280 -16
- package/dist/store/store.types.d.ts.map +1 -1
- package/dist/store/stored-record.d.ts +16 -0
- package/dist/store/stored-record.d.ts.map +1 -0
- package/dist/store/unfinished-imports.d.ts +15 -0
- package/dist/store/unfinished-imports.d.ts.map +1 -0
- package/dist/store/write-outcome.d.ts +34 -0
- package/dist/store/write-outcome.d.ts.map +1 -0
- package/dist/test/assert-valid-xml/assert-valid-xml.constants.d.ts +7 -0
- package/dist/test/assert-valid-xml/assert-valid-xml.constants.d.ts.map +1 -0
- package/dist/test/assert-valid-xml/assert-valid-xml.d.ts +19 -18
- package/dist/test/assert-valid-xml/assert-valid-xml.d.ts.map +1 -1
- package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts +8 -4
- package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts.map +1 -1
- package/dist/test/assert-xml/assert-xml.constants.d.ts +25 -0
- package/dist/test/assert-xml/assert-xml.constants.d.ts.map +1 -0
- package/dist/test/assert-xml/assert-xml.d.ts +23 -34
- package/dist/test/assert-xml/assert-xml.d.ts.map +1 -1
- package/dist/test/assert-xml/assert-xml.types.d.ts +48 -0
- package/dist/test/assert-xml/assert-xml.types.d.ts.map +1 -0
- package/dist/test/assert-xml/describe-nearby.d.ts +16 -0
- package/dist/test/assert-xml/describe-nearby.d.ts.map +1 -0
- package/dist/test/assert-xml/describe-node-place.d.ts +15 -0
- package/dist/test/assert-xml/describe-node-place.d.ts.map +1 -0
- package/dist/test/assert-xml/index.d.ts +1 -1
- package/dist/test/assert-xml/index.d.ts.map +1 -1
- package/dist/test/assert-xml/query-failure-message.d.ts +24 -0
- package/dist/test/assert-xml/query-failure-message.d.ts.map +1 -0
- package/dist/test/assert-xml/read-xpath-step.d.ts +8 -0
- package/dist/test/assert-xml/read-xpath-step.d.ts.map +1 -0
- package/dist/test/assert-xml/xpath-parser.d.ts +2 -1
- package/dist/test/assert-xml/xpath-parser.d.ts.map +1 -1
- package/dist/test/config.d.ts +5 -0
- package/dist/test/config.d.ts.map +1 -1
- package/dist/test/constant.d.ts +2 -0
- package/dist/test/constant.d.ts.map +1 -1
- package/dist/test/create-test-dialecte.d.ts +32 -37
- package/dist/test/create-test-dialecte.d.ts.map +1 -1
- package/dist/test/create-test-dialecte.types.d.ts +99 -0
- package/dist/test/create-test-dialecte.types.d.ts.map +1 -0
- package/dist/test/create-test-helpers-internal.types.d.ts +19 -0
- package/dist/test/create-test-helpers-internal.types.d.ts.map +1 -0
- package/dist/test/create-test-helpers.d.ts +13 -0
- package/dist/test/create-test-helpers.d.ts.map +1 -0
- package/dist/test/create-test-helpers.types.d.ts +50 -0
- package/dist/test/create-test-helpers.types.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-constraint.d.ts +3 -0
- package/dist/test/fixtures/test-entry-scan-constraint.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-edges.types.d.ts +10 -0
- package/dist/test/fixtures/test-entry-scan-edges.types.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-recursive.d.ts +4 -0
- package/dist/test/fixtures/test-entry-scan-recursive.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-recursive.types.d.ts +15 -0
- package/dist/test/fixtures/test-entry-scan-recursive.types.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-shapes.d.ts +14 -0
- package/dist/test/fixtures/test-entry-scan-shapes.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-shapes.types.d.ts +14 -0
- package/dist/test/fixtures/test-entry-scan-shapes.types.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan-tree.d.ts +3 -0
- package/dist/test/fixtures/test-entry-scan-tree.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan.d.ts +5 -0
- package/dist/test/fixtures/test-entry-scan.d.ts.map +1 -0
- package/dist/test/fixtures/test-entry-scan.types.d.ts +5 -0
- package/dist/test/fixtures/test-entry-scan.types.d.ts.map +1 -0
- package/dist/test/generated/definition.generated.d.ts +5 -0
- package/dist/test/generated/definition.generated.d.ts.map +1 -1
- package/dist/test/in-memory-storage.setup.d.ts +2 -0
- package/dist/test/in-memory-storage.setup.d.ts.map +1 -0
- package/dist/test/index.d.ts +6 -0
- package/dist/test/index.d.ts.map +1 -1
- package/dist/test/normalize-uuids.constants.d.ts +3 -0
- package/dist/test/normalize-uuids.constants.d.ts.map +1 -0
- package/dist/test/normalize-uuids.d.ts +12 -0
- package/dist/test/normalize-uuids.d.ts.map +1 -1
- package/dist/test/run-test-cases.d.ts +30 -11
- package/dist/test/run-test-cases.d.ts.map +1 -1
- package/dist/test/run-test-cases.type.d.ts +16 -0
- package/dist/test/run-test-cases.type.d.ts.map +1 -1
- package/dist/test/sqlite-storage.setup.d.ts +1 -0
- package/dist/test/sqlite-storage.setup.d.ts.map +1 -0
- package/dist/test/test-dialecte-setup.d.ts +31 -0
- package/dist/test/test-dialecte-setup.d.ts.map +1 -0
- package/dist/test/test-dialecte-setup.types.d.ts +29 -0
- package/dist/test/test-dialecte-setup.types.d.ts.map +1 -0
- package/dist/test/test-dialecte.d.ts +2722 -0
- package/dist/test/test-dialecte.d.ts.map +1 -0
- package/dist/test/test-dialecte.types.d.ts +3 -0
- package/dist/test/test-dialecte.types.d.ts.map +1 -0
- package/dist/test/test-dialecte.worker.d.ts +2 -0
- package/dist/test/test-dialecte.worker.d.ts.map +1 -0
- package/dist/test/test-entry-environment.constants.d.ts +27 -0
- package/dist/test/test-entry-environment.constants.d.ts.map +1 -0
- package/dist/test/test-record.d.ts +49 -1
- package/dist/test/test-record.d.ts.map +1 -1
- package/dist/test/test-storage/index.d.ts +5 -0
- package/dist/test/test-storage/index.d.ts.map +1 -0
- package/dist/test/test-storage/read-test-storage.d.ts +4 -0
- package/dist/test/test-storage/read-test-storage.d.ts.map +1 -0
- package/dist/test/test-storage/resolve-test-storage.d.ts +9 -0
- package/dist/test/test-storage/resolve-test-storage.d.ts.map +1 -0
- package/dist/test/test-storage/test-storage.constants.d.ts +9 -0
- package/dist/test/test-storage/test-storage.constants.d.ts.map +1 -0
- package/dist/test/test-storage/test-storage.types.d.ts +15 -0
- package/dist/test/test-storage/test-storage.types.d.ts.map +1 -0
- package/dist/test/test-storage/test-store-for.d.ts +19 -0
- package/dist/test/test-storage/test-store-for.d.ts.map +1 -0
- package/dist/test/test-storage/use-test-storage.d.ts +14 -0
- package/dist/test/test-storage/use-test-storage.d.ts.map +1 -0
- package/dist/test/test-timing.constants.d.ts +15 -0
- package/dist/test/test-timing.constants.d.ts.map +1 -0
- package/dist/test/xml/engine-console.d.ts +6 -0
- package/dist/test/xml/engine-console.d.ts.map +1 -0
- package/dist/test/xml/engine.d.ts +3 -0
- package/dist/test/xml/engine.d.ts.map +1 -0
- package/dist/test/xml/index.d.ts +8 -0
- package/dist/test/xml/index.d.ts.map +1 -0
- package/dist/test/xml/malformed-xml-error.d.ts +5 -0
- package/dist/test/xml/malformed-xml-error.d.ts.map +1 -0
- package/dist/test/xml/print-node.d.ts +7 -0
- package/dist/test/xml/print-node.d.ts.map +1 -0
- package/dist/test/xml/select-nodes.d.ts +14 -0
- package/dist/test/xml/select-nodes.d.ts.map +1 -0
- package/dist/test/xml/with-xml-document.constants.d.ts +7 -0
- package/dist/test/xml/with-xml-document.constants.d.ts.map +1 -0
- package/dist/test/xml/with-xml-document.d.ts +14 -0
- package/dist/test/xml/with-xml-document.d.ts.map +1 -0
- package/dist/test/xml/xml-query-refused-error.d.ts +13 -0
- package/dist/test/xml/xml-query-refused-error.d.ts.map +1 -0
- package/dist/test/xml/xml.constants.d.ts +16 -0
- package/dist/test/xml/xml.constants.d.ts.map +1 -0
- package/dist/test/xml/xml.types.d.ts +31 -0
- package/dist/test/xml/xml.types.d.ts.map +1 -0
- package/dist/test/xsd/test-ext.xsd +226 -0
- package/dist/test/xsd/test.xsd +528 -0
- package/dist/test.js +3427 -406
- package/dist/types/dialecte-config.d.ts +6 -0
- package/dist/types/dialecte-config.d.ts.map +1 -1
- package/dist/types/io.d.ts +5 -0
- package/dist/types/io.d.ts.map +1 -1
- package/dist/utils/attribute-rules.d.ts +16 -1
- package/dist/utils/attribute-rules.d.ts.map +1 -1
- package/dist/utils/child-occurrences.constants.d.ts +4 -0
- package/dist/utils/child-occurrences.constants.d.ts.map +1 -0
- package/dist/utils/child-occurrences.d.ts +17 -0
- package/dist/utils/child-occurrences.d.ts.map +1 -0
- package/dist/utils/child-occurrences.types.d.ts +6 -0
- package/dist/utils/child-occurrences.types.d.ts.map +1 -0
- package/dist/utils/datatype.d.ts +4 -0
- package/dist/utils/datatype.d.ts.map +1 -1
- package/dist/utils/format-xml.d.ts +4 -0
- package/dist/utils/format-xml.d.ts.map +1 -1
- package/dist/utils/index.d.ts +5 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/invariant.d.ts +2 -0
- package/dist/utils/invariant.d.ts.map +1 -1
- package/dist/utils/namespaces.d.ts +15 -1
- package/dist/utils/namespaces.d.ts.map +1 -1
- package/dist/utils/order-children.d.ts +14 -3
- package/dist/utils/order-children.d.ts.map +1 -1
- package/dist/utils/order-children.types.d.ts +10 -0
- package/dist/utils/order-children.types.d.ts.map +1 -0
- package/dist/utils/particle-occurrences.d.ts +4 -0
- package/dist/utils/particle-occurrences.d.ts.map +1 -0
- package/dist/utils/required-choices.d.ts +17 -0
- package/dist/utils/required-choices.d.ts.map +1 -0
- package/dist/utils/required-choices.types.d.ts +15 -0
- package/dist/utils/required-choices.types.d.ts.map +1 -0
- package/dist/utils/resolve-definition.d.ts +4 -0
- package/dist/utils/resolve-definition.d.ts.map +1 -1
- package/dist/utils/save-to-disk.constants.d.ts +3 -0
- package/dist/utils/save-to-disk.constants.d.ts.map +1 -0
- package/dist/utils/save-to-disk.d.ts +17 -5
- package/dist/utils/save-to-disk.d.ts.map +1 -1
- package/dist/utils/save-to-disk.types.d.ts +17 -0
- package/dist/utils/save-to-disk.types.d.ts.map +1 -0
- package/dist/utils/seeded-uuid.constants.d.ts +5 -0
- package/dist/utils/seeded-uuid.constants.d.ts.map +1 -0
- package/dist/utils/seeded-uuid.d.ts +15 -0
- package/dist/utils/seeded-uuid.d.ts.map +1 -0
- package/dist/utils/seeded-uuid.types.d.ts +8 -0
- package/dist/utils/seeded-uuid.types.d.ts.map +1 -0
- package/dist/utils/tell-listener.constants.d.ts +9 -0
- package/dist/utils/tell-listener.constants.d.ts.map +1 -0
- package/dist/utils/tell-listener.d.ts +24 -0
- package/dist/utils/tell-listener.d.ts.map +1 -0
- package/dist/utils/xml-characters.constants.d.ts +9 -0
- package/dist/utils/xml-characters.constants.d.ts.map +1 -0
- package/dist/utils/xml-characters.d.ts +8 -0
- package/dist/utils/xml-characters.d.ts.map +1 -0
- package/dist/utils/xml-whitespace.constants.d.ts +8 -0
- package/dist/utils/xml-whitespace.constants.d.ts.map +1 -0
- package/dist/utils/xml-whitespace.d.ts +19 -0
- package/dist/utils/xml-whitespace.d.ts.map +1 -0
- package/dist/utils/xsi-type.d.ts +4 -0
- package/dist/utils/xsi-type.d.ts.map +1 -1
- package/dist/utils/yield-to-queue.d.ts +6 -0
- package/dist/utils/yield-to-queue.d.ts.map +1 -0
- package/dist/utils-USNkj4sT.js +1275 -0
- package/dist/utils.js +1 -2
- package/dist/xml/build/document-root.d.ts +7 -0
- package/dist/xml/build/document-root.d.ts.map +1 -0
- package/dist/xml/build/index.d.ts +0 -5
- package/dist/xml/build/index.d.ts.map +1 -1
- package/dist/xml/build/record-element.d.ts +15 -0
- package/dist/xml/build/record-element.d.ts.map +1 -0
- package/dist/xml/build/record-element.types.d.ts +12 -0
- package/dist/xml/build/record-element.types.d.ts.map +1 -0
- package/dist/xml/build/write-xml-records.d.ts +7 -0
- package/dist/xml/build/write-xml-records.d.ts.map +1 -0
- package/dist/xml/build/write-xml-records.types.d.ts +11 -0
- package/dist/xml/build/write-xml-records.types.d.ts.map +1 -0
- package/dist/xml/build/xml-element.d.ts +79 -0
- package/dist/xml/build/xml-element.d.ts.map +1 -0
- package/dist/xml/build/xml-element.types.d.ts +34 -0
- package/dist/xml/build/xml-element.types.d.ts.map +1 -0
- package/dist/xml/build/xml-writer.constants.d.ts +24 -0
- package/dist/xml/build/xml-writer.constants.d.ts.map +1 -0
- package/dist/xml/build/xml-writer.d.ts +40 -0
- package/dist/xml/build/xml-writer.d.ts.map +1 -0
- package/dist/xml/build/xml-writer.types.d.ts +34 -0
- package/dist/xml/build/xml-writer.types.d.ts.map +1 -0
- package/dist/xml/dom/index.d.ts +3 -0
- package/dist/xml/dom/index.d.ts.map +1 -0
- package/dist/xml/dom/xml-document-from-file.d.ts +10 -0
- package/dist/xml/dom/xml-document-from-file.d.ts.map +1 -0
- package/dist/xml/dom/xml-document-from-file.types.d.ts +5 -0
- package/dist/xml/dom/xml-document-from-file.types.d.ts.map +1 -0
- package/dist/xml/index.d.ts +1 -0
- package/dist/xml/index.d.ts.map +1 -1
- package/dist/xml/inspect-xml.d.ts +2 -0
- package/dist/xml/inspect-xml.d.ts.map +1 -1
- package/dist/xml/parse/index.d.ts +1 -1
- package/dist/xml/parse/index.d.ts.map +1 -1
- package/dist/xml/parse/parse-xml-document.constants.d.ts +5 -0
- package/dist/xml/parse/parse-xml-document.constants.d.ts.map +1 -0
- package/dist/xml/parse/parse-xml-document.d.ts +13 -2
- package/dist/xml/parse/parse-xml-document.d.ts.map +1 -1
- package/dist/xml/parse/parse-xml-document.types.d.ts +7 -2
- package/dist/xml/parse/parse-xml-document.types.d.ts.map +1 -1
- package/dist/xml/parse/parser.constants.d.ts +7 -0
- package/dist/xml/parse/parser.constants.d.ts.map +1 -0
- package/dist/xml/parse/parser.d.ts.map +1 -1
- package/package.json +88 -10
- package/skills/dialecte/SKILL.md +345 -0
- package/skills/dialecte/references/api.json +1830 -0
- package/skills/dialecte/references/api.md +557 -0
- package/skills/dialecte/references/core-api.md +205 -0
- package/skills/dialecte/references/testing.md +116 -0
- package/skills/dialecte-contributing/SKILL.md +374 -0
- package/skills/dialecte-contributing/references/code-rules.md +115 -0
- package/skills/dialecte-contributing/references/landing-changes.md +87 -0
- package/skills/dialecte-contributing/references/lot-in-a-package.md +45 -0
- package/skills/dialecte-contributing/references/perf.md +40 -0
- package/skills/dialecte-contributing/references/traps.md +109 -0
- package/skills/dialecte-lot/SKILL.md +526 -0
- package/skills/dialecte-lot/references/briefs.md +161 -0
- package/skills/dialecte-lot/references/model-tiers.md +52 -0
- package/skills/dialecte-lot/references/retro.md +51 -0
- package/skills/dialecte-lot/references/standard-check.md +45 -0
- package/skills/dialecte-lot/references/stations.md +110 -0
- package/dist/project/io/import-document.d.ts +0 -7
- package/dist/project/io/import-document.d.ts.map +0 -1
- package/dist/test/assert-xml/types.d.ts +0 -2
- package/dist/test/assert-xml/types.d.ts.map +0 -1
- package/dist/utils-DJN0Md0v.js +0 -624
- package/dist/xml/build/build-xml-document.d.ts +0 -10
- package/dist/xml/build/build-xml-document.d.ts.map +0 -1
- package/dist/xml/build/build-xml-document.types.d.ts +0 -22
- package/dist/xml/build/build-xml-document.types.d.ts.map +0 -1
- package/dist/xml/build/download-file.d.ts +0 -7
- package/dist/xml/build/download-file.d.ts.map +0 -1
- package/dist/xml/build/formatter.d.ts +0 -2
- package/dist/xml/build/formatter.d.ts.map +0 -1
- package/dist/xml/build/serialize.d.ts +0 -11
- package/dist/xml/build/serialize.d.ts.map +0 -1
- package/dist/xml/build/serialize.types.d.ts +0 -12
- package/dist/xml/build/serialize.types.d.ts.map +0 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Heartbeat, ServedClient, StoreEvents } from '../../engine/host/host.types';
|
|
2
|
+
import { SqliteEngine, SqliteEngineOptions } from '../engine/engine.types';
|
|
3
|
+
import { SAHPoolUtil, Sqlite3Static } from '@sqlite.org/sqlite-wasm';
|
|
4
|
+
/** What a SQLite engine opens with besides what every engine is told (`EngineOpenParams.settings`). */
|
|
5
|
+
export type SqliteEngineSettings = {
|
|
6
|
+
/** The consumer's one SQLite wasm file. */
|
|
7
|
+
wasmUrl: string;
|
|
8
|
+
options?: Partial<SqliteEngineOptions>;
|
|
9
|
+
/** How many SQLite steps between two of its progress handler's calls (`PROGRESS_BEAT_OPS` when absent). */
|
|
10
|
+
progressBeatOps?: number;
|
|
11
|
+
};
|
|
12
|
+
/** An engine worker's state: the project it serves, its pool, its lock, the engine, the client ports. */
|
|
13
|
+
export type EngineRuntimeState = {
|
|
14
|
+
project: string | undefined;
|
|
15
|
+
pool: SAHPoolUtil | undefined;
|
|
16
|
+
/** Releases the engine lock (held from the open until `close` or `destroy`). */
|
|
17
|
+
releaseLock: (() => void) | undefined;
|
|
18
|
+
engine: SqliteEngine | undefined;
|
|
19
|
+
/** The project's channel, open while the engine is. */
|
|
20
|
+
events: StoreEvents | undefined;
|
|
21
|
+
/** The engine's sign of life on the client ports, while it is open. */
|
|
22
|
+
heartbeat: Heartbeat | undefined;
|
|
23
|
+
clients: Map<string, ServedClient>;
|
|
24
|
+
};
|
|
25
|
+
/** What the pool's install is given: sqlite-wasm's options, with the one its types leave out. */
|
|
26
|
+
export type PoolInstallOptions = Parameters<Sqlite3Static['installOpfsSAHPoolVfs']>[0] & {
|
|
27
|
+
/** An install that failed before in this worker tried again, not its failure answered again. */
|
|
28
|
+
forceReinitIfPreviouslyFailed?: boolean;
|
|
29
|
+
};
|
|
30
|
+
/** The project's lock, held: release it once the engine no longer touches the files. */
|
|
31
|
+
export type HeldEngineLock = {
|
|
32
|
+
release: () => void;
|
|
33
|
+
};
|
|
34
|
+
/** A file of the private file system as a dedicated worker reaches it (the page's types lack this member). */
|
|
35
|
+
export type SyncAccessFileHandle = FileSystemFileHandle & {
|
|
36
|
+
createSyncAccessHandle: () => Promise<PoolFileAccess>;
|
|
37
|
+
};
|
|
38
|
+
/** The synchronous access a worker has to a pool file, as far as the runtime uses it. */
|
|
39
|
+
export type PoolFileAccess = {
|
|
40
|
+
close: () => void;
|
|
41
|
+
getSize: () => number;
|
|
42
|
+
read: (buffer: Uint8Array, options: {
|
|
43
|
+
at: number;
|
|
44
|
+
}) => number;
|
|
45
|
+
};
|
|
46
|
+
/** A pool file as the probe read it: its size, and its first bytes (its header's path, flags and digest). */
|
|
47
|
+
export type PoolFileHead = {
|
|
48
|
+
size: number;
|
|
49
|
+
header: Uint8Array;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* What an existing pool holds: the project's database, nothing but headers (it never held pages), or data with no
|
|
53
|
+
* database (the database's header damaged).
|
|
54
|
+
*/
|
|
55
|
+
export type PoolContents = 'database' | 'blank' | 'lost';
|
|
56
|
+
//# sourceMappingURL=runtime.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.types.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/runtime/runtime.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEzE,uGAAuG;AACvG,MAAM,MAAM,oBAAoB,GAAG;IAClC,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACtC,2GAA2G;IAC3G,eAAe,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,yGAAyG;AACzG,MAAM,MAAM,kBAAkB,GAAG;IAChC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,IAAI,EAAE,WAAW,GAAG,SAAS,CAAA;IAC7B,gFAAgF;IAChF,WAAW,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;IACrC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,uDAAuD;IACvD,MAAM,EAAE,WAAW,GAAG,SAAS,CAAA;IAC/B,uEAAuE;IACvE,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;CAClC,CAAA;AAED,iGAAiG;AACjG,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;IACxF,gGAAgG;IAChG,6BAA6B,CAAC,EAAE,OAAO,CAAA;CACvC,CAAA;AAED,wFAAwF;AACxF,MAAM,MAAM,cAAc,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED,8GAA8G;AAC9G,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,GAAG;IACzD,sBAAsB,EAAE,MAAM,OAAO,CAAC,cAAc,CAAC,CAAA;CACrD,CAAA;AAED,yFAAyF;AACzF,MAAM,MAAM,cAAc,GAAG;IAC5B,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,OAAO,EAAE,MAAM,MAAM,CAAA;IACrB,IAAI,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAA;CAC7D,CAAA;AAED,6GAA6G;AAC7G,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,CAAA;AAE/D;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DialecteDeclaration } from '../../../dialecte';
|
|
2
|
+
import { ExtensionModules } from '../../../document';
|
|
3
|
+
import { AnyDialecteConfig } from '../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* Serve the dialecte's project engine from this worker, the one call of a dialecte package's engine worker file -
|
|
6
|
+
* today the SQLite engine on the origin's private file system (opfs-sahpool). The realm that spawned it (or
|
|
7
|
+
* the hub, through it) sends control messages - open the project, adopt a client's port, a client gone, close, destroy -
|
|
8
|
+
* handled one at a time and each answered once; every adopted port is served the engine's members.
|
|
9
|
+
* One project per worker.
|
|
10
|
+
*
|
|
11
|
+
* @intent serve a dialecte's engine from a worker, write a dialecte package's engine worker file, ship a dialecte's SQLite engine in its package
|
|
12
|
+
*/
|
|
13
|
+
export declare function serveDialecteEngine<GenericConfig extends AnyDialecteConfig, GenericModules extends ExtensionModules, GenericConfigKey extends string>(params: {
|
|
14
|
+
dialecte: DialecteDeclaration<GenericConfig, GenericModules, GenericConfigKey>;
|
|
15
|
+
}): void;
|
|
16
|
+
//# sourceMappingURL=serve-dialecte-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serve-dialecte-engine.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/runtime/serve-dialecte-engine.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAiB,MAAM,SAAS,CAAA;AAG/D;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAClC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,gBAAgB,EACvC,gBAAgB,SAAS,MAAM,EAC9B,MAAM,EAAE;IACT,QAAQ,EAAE,mBAAmB,CAAC,aAAa,EAAE,cAAc,EAAE,gBAAgB,CAAC,CAAA;CAC9E,GAAG,IAAI,CA4CP"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SqliteConnectorParams } from '../sqlite-storage.types';
|
|
2
|
+
import { Store } from '../store.types';
|
|
3
|
+
/** The store of a project on `sqlite` storage: an EngineStore whose engine runs in a worker (hub or page). */
|
|
4
|
+
export declare function sqliteStoreOf(params: {
|
|
5
|
+
connector: SqliteConnectorParams;
|
|
6
|
+
}): Store;
|
|
7
|
+
//# sourceMappingURL=sqlite-store-of.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-store-of.d.ts","sourceRoot":"","sources":["../../../src/store/sqlite/sqlite-store-of.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,8GAA8G;AAC9G,wBAAgB,aAAa,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,qBAAqB,CAAA;CAAE,GAAG,KAAK,CAGjF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Sqlite3Static } from '@sqlite.org/sqlite-wasm';
|
|
2
|
+
/**
|
|
3
|
+
* Make sqlite-wasm's text codec keep well-formed text as written, once per SQLite module. Its own
|
|
4
|
+
* reads a text column with a default `TextDecoder`, which drops a leading byte order mark, and
|
|
5
|
+
* binds a string with a `TextEncoder`, which writes a lone surrogate as U+FFFD - so a key holding
|
|
6
|
+
* one would name the row whose key holds U+FFFD there. Installed: a column is decoded with the byte
|
|
7
|
+
* order mark kept, and a string that is not well-formed is bound as WTF-8 (a lone surrogate as its
|
|
8
|
+
* own three bytes, as SQLite's JSON reader decodes an escaped one), bytes UTF-8 never holds: such a
|
|
9
|
+
* key never matches text written as UTF-8 (the key holding U+FFFD in its place among them). A
|
|
10
|
+
* well-formed string is bound as before. Error messages, column names and file names go through
|
|
11
|
+
* sqlite-wasm's own decoder and allocator, unchanged.
|
|
12
|
+
*/
|
|
13
|
+
export declare function installLosslessText(params: {
|
|
14
|
+
sqlite3: Sqlite3Static;
|
|
15
|
+
}): void;
|
|
16
|
+
/** Whether `installLosslessText` ran on this SQLite module. */
|
|
17
|
+
export declare function isLosslessTextInstalled(params: {
|
|
18
|
+
sqlite3: Sqlite3Static;
|
|
19
|
+
}): boolean;
|
|
20
|
+
//# sourceMappingURL=sqlite-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-text.d.ts","sourceRoot":"","sources":["../../../src/store/sqlite/sqlite-text.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE,GAAG,IAAI,CAkB5E;AAED,+DAA+D;AAC/D,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE,GAAG,OAAO,CAEnF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one SQLite wasm file of a consumer: a consumer's bundler emits it once, content-hashed, for
|
|
3
|
+
* every dialecte engine (each engine is handed this URL, its own bundle holds no wasm). Main-realm
|
|
4
|
+
* code only: in node it points nowhere (sqlite-wasm's node build finds its own file).
|
|
5
|
+
*/
|
|
6
|
+
export declare const SQLITE_WASM_URL: string;
|
|
7
|
+
/** The wasm URL a realm loads SQLite from: the consumer's file in a browser, none in node. */
|
|
8
|
+
export declare function realmWasmUrl(): string | undefined;
|
|
9
|
+
//# sourceMappingURL=sqlite-wasm-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-wasm-url.d.ts","sourceRoot":"","sources":["../../../src/store/sqlite/sqlite-wasm-url.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAGtB,CAAA;AAEN,8FAA8F;AAC9F,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAGjD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SqliteWasmText } from './sqlite.types';
|
|
2
|
+
/** The VFSes of sqlite-wasm the engine never uses: not installed (they would only warn where they cannot run). */
|
|
3
|
+
export declare const SQLITE_VFS_DISABLED: {
|
|
4
|
+
readonly opfs: true;
|
|
5
|
+
readonly 'opfs-vfs': true;
|
|
6
|
+
readonly 'opfs-wl': true;
|
|
7
|
+
};
|
|
8
|
+
/** The members of sqlite-wasm's `wasm` utilities its text codec runs through, read by `installLosslessText`. */
|
|
9
|
+
export declare const SQLITE_TEXT_MEMBERS: (keyof SqliteWasmText)[];
|
|
10
|
+
/**
|
|
11
|
+
* Set on a SQLite module's `wasm` utilities once `installLosslessText` made its codec lossless (registered, so every
|
|
12
|
+
* copy of core reads the same mark; not enumerable, so a copy of the utilities does not carry it).
|
|
13
|
+
*/
|
|
14
|
+
export declare const LOSSLESS_TEXT_MARK: unique symbol;
|
|
15
|
+
//# sourceMappingURL=sqlite.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite.constants.d.ts","sourceRoot":"","sources":["../../../src/store/sqlite/sqlite.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,kHAAkH;AAClH,eAAO,MAAM,mBAAmB;;;;CAA6D,CAAA;AAE7F,gHAAgH;AAChH,eAAO,MAAM,mBAAmB,EAMmB,CAAC,MAAM,cAAc,CAAC,EAAE,CAAA;AAE3E;;;GAGG;AACH,eAAO,MAAM,kBAAkB,eAA6C,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Sqlite3Static, WasmPointer } from '@sqlite.org/sqlite-wasm';
|
|
2
|
+
/** What sqlite-wasm reads from `globalThis.sqlite3ApiConfig` as it starts (the part the store sets). */
|
|
3
|
+
export type SqliteApiConfig = {
|
|
4
|
+
disable?: {
|
|
5
|
+
vfs?: Record<string, boolean>;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* sqlite-wasm's init as it runs: it takes the Emscripten module's `locateFile` (its declared type
|
|
10
|
+
* takes nothing).
|
|
11
|
+
*/
|
|
12
|
+
export type SqliteInit = (moduleConfig?: {
|
|
13
|
+
locateFile?: (path: string, prefix: string) => string;
|
|
14
|
+
}) => Promise<Sqlite3Static>;
|
|
15
|
+
/**
|
|
16
|
+
* The members of sqlite-wasm's `wasm` utilities its text codec runs through (not all in its declared
|
|
17
|
+
* types): its column reader decodes through `typedArrayToString`, its binders encode through
|
|
18
|
+
* `allocCString`, both looked up at each call; `typedArrayPart`, `alloc` and `heap8u` are what a
|
|
19
|
+
* replacement of the two needs.
|
|
20
|
+
*/
|
|
21
|
+
export type SqliteWasmText = {
|
|
22
|
+
typedArrayToString: (array: Uint8Array, begin?: number, end?: number) => string;
|
|
23
|
+
typedArrayPart: (array: Uint8Array, begin?: number, end?: number) => Uint8Array;
|
|
24
|
+
allocCString: (text: unknown, returnWithLength?: boolean) => SqliteCString;
|
|
25
|
+
alloc: (bytes: number) => WasmPointer;
|
|
26
|
+
heap8u: () => Uint8Array;
|
|
27
|
+
};
|
|
28
|
+
/** What `allocCString` answers: the string's pointer, with its length in bytes when asked, `null` for a non-string. */
|
|
29
|
+
export type SqliteCString = WasmPointer | [WasmPointer, number] | null;
|
|
30
|
+
/** A statement run on SQLite as a realm loads it: `bind` bound in order, `expected` its one answer. */
|
|
31
|
+
export type SqliteTextCase = {
|
|
32
|
+
sql: string;
|
|
33
|
+
bind: unknown[];
|
|
34
|
+
expected: unknown;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=sqlite.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite.types.d.ts","sourceRoot":"","sources":["../../../src/store/sqlite/sqlite.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEzE,wGAAwG;AACxG,MAAM,MAAM,eAAe,GAAG;IAC7B,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAA;CAC3C,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,YAAY,CAAC,EAAE;IACxC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,CAAA;CACrD,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B,kBAAkB,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/E,cAAc,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,UAAU,CAAA;IAC/E,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,gBAAgB,CAAC,EAAE,OAAO,KAAK,aAAa,CAAA;IAC1E,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,WAAW,CAAA;IACrC,MAAM,EAAE,MAAM,UAAU,CAAA;CACxB,CAAA;AAED,uHAAuH;AACvH,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;AAEtE,uGAAuG;AACvG,MAAM,MAAM,cAAc,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,EAAE,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The version of what copies of the library share through the registration: the `SqliteStorage` it holds and the
|
|
3
|
+
* Store contract of the stores it builds (a copy's Project calls another copy's store). Bumped with any change of
|
|
4
|
+
* either, so a copy of another version finds no kind (`PROJECT_SQLITE_NOT_IMPORTED`) instead of a store it cannot use:
|
|
5
|
+
* `shared-shapes.test.ts` fails until it is: the shape (their members, and every type of the package they reach) is
|
|
6
|
+
* recorded per version in `__shapes__/sqlite-storage-v<version>.txt`, written at the first local run of a new version.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SQLITE_STORAGE_VERSION = 1;
|
|
9
|
+
/**
|
|
10
|
+
* Where the `sqlite` storage kind is registered: on `globalThis`, so every copy of the library of the same storage
|
|
11
|
+
* version the page loads (a dialecte's own copy, a pre-bundled test entry) finds the kind the app's import registered.
|
|
12
|
+
*/
|
|
13
|
+
export declare const SQLITE_STORAGE_KEY: unique symbol;
|
|
14
|
+
//# sourceMappingURL=sqlite-storage.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-storage.constants.d.ts","sourceRoot":"","sources":["../../src/store/sqlite-storage.constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,IAAI,CAAA;AAEvC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,eAE9B,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SqliteStorage } from './sqlite-storage.types';
|
|
2
|
+
/**
|
|
3
|
+
* Register the `sqlite` storage kind for every copy of the library of the same storage version in this realm (what
|
|
4
|
+
* importing `@dialecte/core/sqlite` does). A kind registered already - an earlier import, another copy of the same
|
|
5
|
+
* version - is kept: the realm's engines run in direct mode are one copy's (its open connections, its engines), so
|
|
6
|
+
* every project of the realm goes through that copy.
|
|
7
|
+
*/
|
|
8
|
+
export declare function registerSqliteStorage(params: {
|
|
9
|
+
storage: SqliteStorage;
|
|
10
|
+
}): void;
|
|
11
|
+
/** A test's kind for its case (`undefined`: none, an app that never imported the entry); answers the restore. */
|
|
12
|
+
export declare function replaceSqliteStorage(params: {
|
|
13
|
+
storage: SqliteStorage | undefined;
|
|
14
|
+
}): () => void;
|
|
15
|
+
/**
|
|
16
|
+
* The `sqlite` storage kind registered; none - the app never imported `@dialecte/core/sqlite`, or imported it from a
|
|
17
|
+
* copy of the library of another storage version - refused `PROJECT_SQLITE_NOT_IMPORTED` for `project`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function registeredSqliteStorage(params: {
|
|
20
|
+
project: string;
|
|
21
|
+
}): SqliteStorage;
|
|
22
|
+
//# sourceMappingURL=sqlite-storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-storage.d.ts","sourceRoot":"","sources":["../../src/store/sqlite-storage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAuB,MAAM,wBAAwB,CAAA;AAEhF;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE,GAAG,IAAI,CAG9E;AAED,iHAAiH;AACjH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,aAAa,GAAG,SAAS,CAAA;CAAE,GAAG,MAAM,IAAI,CAO/F;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,aAAa,CASlF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SQLITE_STORAGE_KEY } from './sqlite-storage.constants';
|
|
2
|
+
import { Store } from './store.types';
|
|
3
|
+
/** A project on `sqlite` storage: its name, its dialecte and the engine its factory gives. */
|
|
4
|
+
export type SqliteConnectorParams = {
|
|
5
|
+
name: string;
|
|
6
|
+
dialecteId: string;
|
|
7
|
+
dialecteVersion: string;
|
|
8
|
+
/** The address of the dialecte's engine worker. */
|
|
9
|
+
engineUrl: string;
|
|
10
|
+
/** Measure the import's and the export's stages in the engine (`dev.perf`). */
|
|
11
|
+
perf?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/** The `sqlite` storage kind, as `@dialecte/core/sqlite` registers it. */
|
|
14
|
+
export type SqliteStorage = {
|
|
15
|
+
/** The store of a project on `sqlite` storage: its engine in a worker, through the origin's hub or the page. */
|
|
16
|
+
storeOf: (params: {
|
|
17
|
+
connector: SqliteConnectorParams;
|
|
18
|
+
}) => Store;
|
|
19
|
+
};
|
|
20
|
+
/** `globalThis` as it holds the registered `sqlite` storage kind. */
|
|
21
|
+
export type SqliteStorageHolder = {
|
|
22
|
+
[SQLITE_STORAGE_KEY]?: SqliteStorage;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=sqlite-storage.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-storage.types.d.ts","sourceRoot":"","sources":["../../src/store/sqlite-storage.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAE1C,8FAA8F;AAC9F,MAAM,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAA;IACjB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,OAAO,CAAA;CACd,CAAA;AAED,0EAA0E;AAC1E,MAAM,MAAM,aAAa,GAAG;IAC3B,gHAAgH;IAChH,OAAO,EAAE,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,qBAAqB,CAAA;KAAE,KAAK,KAAK,CAAA;CAChE,CAAA;AAED,qEAAqE;AACrE,MAAM,MAAM,mBAAmB,GAAG;IAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,aAAa,CAAA;CAAE,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** A document id that is already registered. */
|
|
2
|
+
export declare function throwDocumentAlreadyRegistered(params: {
|
|
3
|
+
documentId: string;
|
|
4
|
+
}): never;
|
|
5
|
+
/** A document path refused for breaking a rule: `reason` says which, `meta.path` is the path as given. */
|
|
6
|
+
export declare function throwDocumentPathInvalid(params: {
|
|
7
|
+
path: unknown;
|
|
8
|
+
reason: string;
|
|
9
|
+
}): never;
|
|
10
|
+
/**
|
|
11
|
+
* A document given a place another document holds: the same path, or one a folder of the other's. `takenBy` is
|
|
12
|
+
* that other document.
|
|
13
|
+
*/
|
|
14
|
+
export declare function throwDocumentPathTaken(params: {
|
|
15
|
+
documentId: string;
|
|
16
|
+
path: string;
|
|
17
|
+
takenBy: string;
|
|
18
|
+
}): never;
|
|
19
|
+
/** A write to a document that is not registered: `what` says what was to be written. */
|
|
20
|
+
export declare function throwDocumentNotRegistered(params: {
|
|
21
|
+
documentId: string;
|
|
22
|
+
what: string;
|
|
23
|
+
}): never;
|
|
24
|
+
/** An update of a record the document does not hold. */
|
|
25
|
+
export declare function throwRecordToUpdateNotFound(params: {
|
|
26
|
+
documentId: string;
|
|
27
|
+
recordId: string;
|
|
28
|
+
}): never;
|
|
29
|
+
/**
|
|
30
|
+
* Creates refused for their ids: `held` the ids the document already holds, `repeated` the ids the
|
|
31
|
+
* write gives more than once. `meta.recordIds` names each refused id once.
|
|
32
|
+
*/
|
|
33
|
+
export declare function throwDuplicateRecordIds(params: {
|
|
34
|
+
documentId: string;
|
|
35
|
+
held: string[];
|
|
36
|
+
repeated: string[];
|
|
37
|
+
cause?: Error;
|
|
38
|
+
}): never;
|
|
39
|
+
/**
|
|
40
|
+
* A destroy refused while another connection - of this realm, or of another tab - has the project open:
|
|
41
|
+
* nothing is removed; it can be destroyed once that connection is closed.
|
|
42
|
+
*/
|
|
43
|
+
export declare function throwOpenElsewhere(params: {
|
|
44
|
+
storeName: string;
|
|
45
|
+
connections?: number;
|
|
46
|
+
}): never;
|
|
47
|
+
/** An operation through a store closed by `close()`: refused until the store is opened again. */
|
|
48
|
+
export declare function throwStoreClosed(params: {
|
|
49
|
+
storeName: string;
|
|
50
|
+
}): never;
|
|
51
|
+
//# sourceMappingURL=store-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-errors.d.ts","sourceRoot":"","sources":["../../src/store/store-errors.ts"],"names":[],"mappings":"AAKA,gDAAgD;AAChD,wBAAgB,8BAA8B,CAAC,MAAM,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAMpF;AAED,0GAA0G;AAC1G,wBAAgB,wBAAwB,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAMzF;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE;IAC9C,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CACf,GAAG,KAAK,CAMR;AAED,wFAAwF;AACxF,wBAAgB,0BAA0B,CAAC,MAAM,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAM9F;AAED,wDAAwD;AACxD,wBAAgB,2BAA2B,CAAC,MAAM,EAAE;IACnD,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;CAChB,GAAG,KAAK,CAMR;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAC/C,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAA;CACb,GAAG,KAAK,CAWR;AAMD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAM7F;AAED,iGAAiG;AACjG,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAMrE"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { RecordSchema } from './store.types';
|
|
2
|
+
/** The names a project or its dialecte's id never takes: nothing, or one a directory cannot be named after. */
|
|
3
|
+
export declare const UNNAMABLE_PARTS: readonly string[];
|
|
4
|
+
/** Records an export reads per call and writes per batch, unless asked otherwise. */
|
|
5
|
+
export declare const EXPORT_BATCH_SIZE = 2000;
|
|
2
6
|
/** System table: file registry */
|
|
3
7
|
export declare const TABLE_DOCUMENTS = "_documents";
|
|
4
8
|
/** System table: per-file changelog entries */
|
|
@@ -7,15 +11,23 @@ export declare const TABLE_CHANGELOG = "_changeLog";
|
|
|
7
11
|
export declare const TABLE_META = "_meta";
|
|
8
12
|
/** Prefix for per-file record tables */
|
|
9
13
|
export declare const TABLE_RECORD_PREFIX = "xel_";
|
|
10
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The name of the store table holding the records of the document `documentId`.
|
|
16
|
+
*
|
|
17
|
+
* @intent name the store table holding a document's records, read a document's records from the local database directly
|
|
18
|
+
*/
|
|
11
19
|
export declare function recordTableName(documentId: string): string;
|
|
12
20
|
/** System table: blob metadata registry */
|
|
13
21
|
export declare const TABLE_BLOBS = "_blobs";
|
|
14
22
|
/** Prefix for per-document blob data tables */
|
|
15
23
|
export declare const TABLE_BLOB_PREFIX = "blob_";
|
|
16
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The name of the store table holding the blob data of the document `documentId`.
|
|
26
|
+
*
|
|
27
|
+
* @intent name the store table holding a document's blob data, store blobs in a custom store
|
|
28
|
+
*/
|
|
17
29
|
export declare function blobTableName(documentId: string): string;
|
|
18
|
-
/** Schema for the
|
|
30
|
+
/** Schema for the _documents registry table */
|
|
19
31
|
export declare const DOCUMENTS_SCHEMA: RecordSchema;
|
|
20
32
|
/** Schema for the _changeLog table */
|
|
21
33
|
export declare const CHANGELOG_SCHEMA: RecordSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.constants.d.ts","sourceRoot":"","sources":["../../src/store/store.constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"store.constants.d.ts","sourceRoot":"","sources":["../../src/store/store.constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,+GAA+G;AAC/G,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAAoB,CAAA;AAIjE,qFAAqF;AACrF,eAAO,MAAM,iBAAiB,OAAO,CAAA;AAIrC,kCAAkC;AAClC,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C,+CAA+C;AAC/C,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C,8DAA8D;AAC9D,eAAO,MAAM,UAAU,UAAU,CAAA;AAEjC,wCAAwC;AACxC,eAAO,MAAM,mBAAmB,SAAS,CAAA;AAEzC;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,2CAA2C;AAC3C,eAAO,MAAM,WAAW,WAAW,CAAA;AAEnC,+CAA+C;AAC/C,eAAO,MAAM,iBAAiB,UAAU,CAAA;AAExC;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAExD;AAID,+CAA+C;AAC/C,eAAO,MAAM,gBAAgB,EAAE,YAK9B,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,gBAAgB,EAAE,YAM9B,CAAA;AAED,iCAAiC;AACjC,eAAO,MAAM,WAAW,EAAE,YAKzB,CAAA;AAED,sFAAsF;AACtF,eAAO,MAAM,YAAY,EAAE,YAK1B,CAAA;AAED,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,EAAE,YAK9B,CAAA"}
|