@rocicorp/zero 0.0.0-202410031711
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/deps/sqlite3/sqlite3.c +260574 -0
- package/deps/sqlite3/sqlite3.h +13572 -0
- package/deps/sqlite3/sqlite3ext.h +719 -0
- package/out/btree/b+tree.d.ts +471 -0
- package/out/btree/b+tree.d.ts.map +1 -0
- package/out/btree/b+tree.js +1708 -0
- package/out/btree/b+tree.js.map +1 -0
- package/out/btree/interfaces.d.ts +270 -0
- package/out/btree/interfaces.d.ts.map +1 -0
- package/out/btree/interfaces.js +3 -0
- package/out/btree/interfaces.js.map +1 -0
- package/out/chunk-2RUT5EQV.js +28 -0
- package/out/chunk-2RUT5EQV.js.map +7 -0
- package/out/datadog/src/datadog-log-sink.d.ts +20 -0
- package/out/datadog/src/datadog-log-sink.d.ts.map +1 -0
- package/out/datadog/src/datadog-log-sink.js +231 -0
- package/out/datadog/src/datadog-log-sink.js.map +1 -0
- package/out/datadog/src/mod.d.ts +2 -0
- package/out/datadog/src/mod.d.ts.map +1 -0
- package/out/react.js +108 -0
- package/out/react.js.map +7 -0
- package/out/replicache/src/async-iterable-to-array.d.ts +2 -0
- package/out/replicache/src/async-iterable-to-array.d.ts.map +1 -0
- package/out/replicache/src/bg-interval.d.ts +3 -0
- package/out/replicache/src/bg-interval.d.ts.map +1 -0
- package/out/replicache/src/binary-search.d.ts +15 -0
- package/out/replicache/src/binary-search.d.ts.map +1 -0
- package/out/replicache/src/broadcast-channel.d.ts +3 -0
- package/out/replicache/src/broadcast-channel.d.ts.map +1 -0
- package/out/replicache/src/btree/diff.d.ts +4 -0
- package/out/replicache/src/btree/diff.d.ts.map +1 -0
- package/out/replicache/src/btree/node.d.ts +125 -0
- package/out/replicache/src/btree/node.d.ts.map +1 -0
- package/out/replicache/src/btree/read.d.ts +32 -0
- package/out/replicache/src/btree/read.d.ts.map +1 -0
- package/out/replicache/src/btree/splice.d.ts +9 -0
- package/out/replicache/src/btree/splice.d.ts.map +1 -0
- package/out/replicache/src/btree/write.d.ts +24 -0
- package/out/replicache/src/btree/write.d.ts.map +1 -0
- package/out/replicache/src/call-default-fetch.d.ts +6 -0
- package/out/replicache/src/call-default-fetch.d.ts.map +1 -0
- package/out/replicache/src/config.d.ts +13 -0
- package/out/replicache/src/config.d.ts.map +1 -0
- package/out/replicache/src/connection-loop-delegates.d.ts +20 -0
- package/out/replicache/src/connection-loop-delegates.d.ts.map +1 -0
- package/out/replicache/src/connection-loop.d.ts +28 -0
- package/out/replicache/src/connection-loop.d.ts.map +1 -0
- package/out/replicache/src/cookies.d.ts +29 -0
- package/out/replicache/src/cookies.d.ts.map +1 -0
- package/out/replicache/src/dag/chunk.d.ts +35 -0
- package/out/replicache/src/dag/chunk.d.ts.map +1 -0
- package/out/replicache/src/dag/gc.d.ts +42 -0
- package/out/replicache/src/dag/gc.d.ts.map +1 -0
- package/out/replicache/src/dag/key.d.ts +26 -0
- package/out/replicache/src/dag/key.d.ts.map +1 -0
- package/out/replicache/src/dag/lazy-store.d.ts +181 -0
- package/out/replicache/src/dag/lazy-store.d.ts.map +1 -0
- package/out/replicache/src/dag/store-impl.d.ts +38 -0
- package/out/replicache/src/dag/store-impl.d.ts.map +1 -0
- package/out/replicache/src/dag/store.d.ts +36 -0
- package/out/replicache/src/dag/store.d.ts.map +1 -0
- package/out/replicache/src/dag/visitor.d.ts +13 -0
- package/out/replicache/src/dag/visitor.d.ts.map +1 -0
- package/out/replicache/src/db/commit.d.ts +133 -0
- package/out/replicache/src/db/commit.d.ts.map +1 -0
- package/out/replicache/src/db/index.d.ts +33 -0
- package/out/replicache/src/db/index.d.ts.map +1 -0
- package/out/replicache/src/db/read.d.ts +24 -0
- package/out/replicache/src/db/read.d.ts.map +1 -0
- package/out/replicache/src/db/rebase.d.ts +10 -0
- package/out/replicache/src/db/rebase.d.ts.map +1 -0
- package/out/replicache/src/db/scan.d.ts +15 -0
- package/out/replicache/src/db/scan.d.ts.map +1 -0
- package/out/replicache/src/db/write.d.ts +39 -0
- package/out/replicache/src/db/write.d.ts.map +1 -0
- package/out/replicache/src/error-responses.d.ts +26 -0
- package/out/replicache/src/error-responses.d.ts.map +1 -0
- package/out/replicache/src/filter-async-iterable.d.ts +10 -0
- package/out/replicache/src/filter-async-iterable.d.ts.map +1 -0
- package/out/replicache/src/format-version.d.ts +9 -0
- package/out/replicache/src/format-version.d.ts.map +1 -0
- package/out/replicache/src/frozen-json.d.ts +35 -0
- package/out/replicache/src/frozen-json.d.ts.map +1 -0
- package/out/replicache/src/get-default-puller.d.ts +14 -0
- package/out/replicache/src/get-default-puller.d.ts.map +1 -0
- package/out/replicache/src/get-default-pusher.d.ts +10 -0
- package/out/replicache/src/get-default-pusher.d.ts.map +1 -0
- package/out/replicache/src/hash.d.ts +29 -0
- package/out/replicache/src/hash.d.ts.map +1 -0
- package/out/replicache/src/http-request-info.d.ts +6 -0
- package/out/replicache/src/http-request-info.d.ts.map +1 -0
- package/out/replicache/src/impl.d.ts +4 -0
- package/out/replicache/src/impl.d.ts.map +1 -0
- package/out/replicache/src/index-defs.d.ts +36 -0
- package/out/replicache/src/index-defs.d.ts.map +1 -0
- package/out/replicache/src/iterable-union.d.ts +5 -0
- package/out/replicache/src/iterable-union.d.ts.map +1 -0
- package/out/replicache/src/kv/idb-store-with-mem-fallback.d.ts +25 -0
- package/out/replicache/src/kv/idb-store-with-mem-fallback.d.ts.map +1 -0
- package/out/replicache/src/kv/idb-store.d.ts +18 -0
- package/out/replicache/src/kv/idb-store.d.ts.map +1 -0
- package/out/replicache/src/kv/mem-store.d.ts +23 -0
- package/out/replicache/src/kv/mem-store.d.ts.map +1 -0
- package/out/replicache/src/kv/read-impl.d.ts +11 -0
- package/out/replicache/src/kv/read-impl.d.ts.map +1 -0
- package/out/replicache/src/kv/store.d.ts +76 -0
- package/out/replicache/src/kv/store.d.ts.map +1 -0
- package/out/replicache/src/kv/write-impl-base.d.ts +18 -0
- package/out/replicache/src/kv/write-impl-base.d.ts.map +1 -0
- package/out/replicache/src/kv/write-impl.d.ts +9 -0
- package/out/replicache/src/kv/write-impl.d.ts.map +1 -0
- package/out/replicache/src/lazy.d.ts +2 -0
- package/out/replicache/src/lazy.d.ts.map +1 -0
- package/out/replicache/src/log-options.d.ts +10 -0
- package/out/replicache/src/log-options.d.ts.map +1 -0
- package/out/replicache/src/merge-async-iterables.d.ts +16 -0
- package/out/replicache/src/merge-async-iterables.d.ts.map +1 -0
- package/out/replicache/src/mod.d.ts +38 -0
- package/out/replicache/src/mod.d.ts.map +1 -0
- package/out/replicache/src/mutation-recovery.d.ts +43 -0
- package/out/replicache/src/mutation-recovery.d.ts.map +1 -0
- package/out/replicache/src/new-client-channel.d.ts +6 -0
- package/out/replicache/src/new-client-channel.d.ts.map +1 -0
- package/out/replicache/src/on-persist-channel.d.ts +10 -0
- package/out/replicache/src/on-persist-channel.d.ts.map +1 -0
- package/out/replicache/src/patch-operation.d.ts +32 -0
- package/out/replicache/src/patch-operation.d.ts.map +1 -0
- package/out/replicache/src/pending-mutations.d.ts +14 -0
- package/out/replicache/src/pending-mutations.d.ts.map +1 -0
- package/out/replicache/src/persist/client-gc.d.ts +17 -0
- package/out/replicache/src/persist/client-gc.d.ts.map +1 -0
- package/out/replicache/src/persist/client-group-gc.d.ts +10 -0
- package/out/replicache/src/persist/client-group-gc.d.ts.map +1 -0
- package/out/replicache/src/persist/client-groups.d.ts +72 -0
- package/out/replicache/src/persist/client-groups.d.ts.map +1 -0
- package/out/replicache/src/persist/clients.d.ts +155 -0
- package/out/replicache/src/persist/clients.d.ts.map +1 -0
- package/out/replicache/src/persist/collect-idb-databases.d.ts +91 -0
- package/out/replicache/src/persist/collect-idb-databases.d.ts.map +1 -0
- package/out/replicache/src/persist/gather-mem-only-visitor.d.ts +12 -0
- package/out/replicache/src/persist/gather-mem-only-visitor.d.ts.map +1 -0
- package/out/replicache/src/persist/gather-not-cached-visitor.d.ts +17 -0
- package/out/replicache/src/persist/gather-not-cached-visitor.d.ts.map +1 -0
- package/out/replicache/src/persist/heartbeat.d.ts +9 -0
- package/out/replicache/src/persist/heartbeat.d.ts.map +1 -0
- package/out/replicache/src/persist/idb-databases-store-db-name.d.ts +5 -0
- package/out/replicache/src/persist/idb-databases-store-db-name.d.ts.map +1 -0
- package/out/replicache/src/persist/idb-databases-store.d.ts +24 -0
- package/out/replicache/src/persist/idb-databases-store.d.ts.map +1 -0
- package/out/replicache/src/persist/make-client-id.d.ts +6 -0
- package/out/replicache/src/persist/make-client-id.d.ts.map +1 -0
- package/out/replicache/src/persist/persist.d.ts +26 -0
- package/out/replicache/src/persist/persist.d.ts.map +1 -0
- package/out/replicache/src/persist/refresh.d.ts +13 -0
- package/out/replicache/src/persist/refresh.d.ts.map +1 -0
- package/out/replicache/src/process-scheduler.d.ts +20 -0
- package/out/replicache/src/process-scheduler.d.ts.map +1 -0
- package/out/replicache/src/puller.d.ts +61 -0
- package/out/replicache/src/puller.d.ts.map +1 -0
- package/out/replicache/src/pusher.d.ts +33 -0
- package/out/replicache/src/pusher.d.ts.map +1 -0
- package/out/replicache/src/replicache-impl.d.ts +321 -0
- package/out/replicache/src/replicache-impl.d.ts.map +1 -0
- package/out/replicache/src/replicache-options.d.ts +209 -0
- package/out/replicache/src/replicache-options.d.ts.map +1 -0
- package/out/replicache/src/replicache.d.ts +298 -0
- package/out/replicache/src/replicache.d.ts.map +1 -0
- package/out/replicache/src/request-idle.d.ts +6 -0
- package/out/replicache/src/request-idle.d.ts.map +1 -0
- package/out/replicache/src/scan-iterator.d.ts +127 -0
- package/out/replicache/src/scan-iterator.d.ts.map +1 -0
- package/out/replicache/src/scan-options.d.ts +67 -0
- package/out/replicache/src/scan-options.d.ts.map +1 -0
- package/out/replicache/src/set-interval-with-signal.d.ts +2 -0
- package/out/replicache/src/set-interval-with-signal.d.ts.map +1 -0
- package/out/replicache/src/size-of-value.d.ts +19 -0
- package/out/replicache/src/size-of-value.d.ts.map +1 -0
- package/out/replicache/src/subscriptions.d.ts +140 -0
- package/out/replicache/src/subscriptions.d.ts.map +1 -0
- package/out/replicache/src/sync/diff.d.ts +31 -0
- package/out/replicache/src/sync/diff.d.ts.map +1 -0
- package/out/replicache/src/sync/ids.d.ts +13 -0
- package/out/replicache/src/sync/ids.d.ts.map +1 -0
- package/out/replicache/src/sync/patch.d.ts +5 -0
- package/out/replicache/src/sync/patch.d.ts.map +1 -0
- package/out/replicache/src/sync/pull-error.d.ts +9 -0
- package/out/replicache/src/sync/pull-error.d.ts.map +1 -0
- package/out/replicache/src/sync/pull.d.ts +82 -0
- package/out/replicache/src/sync/pull.d.ts.map +1 -0
- package/out/replicache/src/sync/push.d.ts +65 -0
- package/out/replicache/src/sync/push.d.ts.map +1 -0
- package/out/replicache/src/sync/request-id.d.ts +10 -0
- package/out/replicache/src/sync/request-id.d.ts.map +1 -0
- package/out/replicache/src/sync/sync-head-name.d.ts +2 -0
- package/out/replicache/src/sync/sync-head-name.d.ts.map +1 -0
- package/out/replicache/src/test-license-key.d.ts +3 -0
- package/out/replicache/src/test-license-key.d.ts.map +1 -0
- package/out/replicache/src/to-error.d.ts +2 -0
- package/out/replicache/src/to-error.d.ts.map +1 -0
- package/out/replicache/src/transaction-closed-error.d.ts +12 -0
- package/out/replicache/src/transaction-closed-error.d.ts.map +1 -0
- package/out/replicache/src/transactions.d.ts +156 -0
- package/out/replicache/src/transactions.d.ts.map +1 -0
- package/out/replicache/src/types.d.ts +57 -0
- package/out/replicache/src/types.d.ts.map +1 -0
- package/out/replicache/src/version.d.ts +5 -0
- package/out/replicache/src/version.d.ts.map +1 -0
- package/out/replicache/src/with-transactions.d.ts +23 -0
- package/out/replicache/src/with-transactions.d.ts.map +1 -0
- package/out/shared/src/abort-error.d.ts +4 -0
- package/out/shared/src/abort-error.d.ts.map +1 -0
- package/out/shared/src/abort-error.js +4 -0
- package/out/shared/src/abort-error.js.map +1 -0
- package/out/shared/src/asserts.d.ts +17 -0
- package/out/shared/src/asserts.d.ts.map +1 -0
- package/out/shared/src/asserts.js +73 -0
- package/out/shared/src/asserts.js.map +1 -0
- package/out/shared/src/browser-env.d.ts +3 -0
- package/out/shared/src/browser-env.d.ts.map +1 -0
- package/out/shared/src/config.d.ts +3 -0
- package/out/shared/src/config.d.ts.map +1 -0
- package/out/shared/src/config.js +3 -0
- package/out/shared/src/config.js.map +1 -0
- package/out/shared/src/custom-key-map.d.ts +26 -0
- package/out/shared/src/custom-key-map.d.ts.map +1 -0
- package/out/shared/src/custom-key-map.js +65 -0
- package/out/shared/src/custom-key-map.js.map +1 -0
- package/out/shared/src/deep-clone.d.ts +4 -0
- package/out/shared/src/deep-clone.d.ts.map +1 -0
- package/out/shared/src/document-visible.d.ts +9 -0
- package/out/shared/src/document-visible.d.ts.map +1 -0
- package/out/shared/src/has-own.d.ts +5 -0
- package/out/shared/src/has-own.d.ts.map +1 -0
- package/out/shared/src/has-own.js +8 -0
- package/out/shared/src/has-own.js.map +1 -0
- package/out/shared/src/immutable.d.ts +11 -0
- package/out/shared/src/immutable.d.ts.map +1 -0
- package/out/shared/src/iterables.d.ts +11 -0
- package/out/shared/src/iterables.d.ts.map +1 -0
- package/out/shared/src/json-schema.d.ts +5 -0
- package/out/shared/src/json-schema.d.ts.map +1 -0
- package/out/shared/src/json-schema.js +36 -0
- package/out/shared/src/json-schema.js.map +1 -0
- package/out/shared/src/json.d.ts +55 -0
- package/out/shared/src/json.d.ts.map +1 -0
- package/out/shared/src/json.js +164 -0
- package/out/shared/src/json.js.map +1 -0
- package/out/shared/src/must.d.ts +2 -0
- package/out/shared/src/must.d.ts.map +1 -0
- package/out/shared/src/must.js +8 -0
- package/out/shared/src/must.js.map +1 -0
- package/out/shared/src/navigator.d.ts +7 -0
- package/out/shared/src/navigator.d.ts.map +1 -0
- package/out/shared/src/parse-big-int.d.ts +2 -0
- package/out/shared/src/parse-big-int.d.ts.map +1 -0
- package/out/shared/src/parse-big-int.js +11 -0
- package/out/shared/src/parse-big-int.js.map +1 -0
- package/out/shared/src/queue.d.ts +40 -0
- package/out/shared/src/queue.d.ts.map +1 -0
- package/out/shared/src/queue.js +118 -0
- package/out/shared/src/queue.js.map +1 -0
- package/out/shared/src/rand.d.ts +7 -0
- package/out/shared/src/rand.d.ts.map +1 -0
- package/out/shared/src/rand.js +11 -0
- package/out/shared/src/rand.js.map +1 -0
- package/out/shared/src/random-uint64.d.ts +2 -0
- package/out/shared/src/random-uint64.d.ts.map +1 -0
- package/out/shared/src/random-values.d.ts +2 -0
- package/out/shared/src/random-values.d.ts.map +1 -0
- package/out/shared/src/resolved-promises.d.ts +5 -0
- package/out/shared/src/resolved-promises.d.ts.map +1 -0
- package/out/shared/src/resolved-promises.js +5 -0
- package/out/shared/src/resolved-promises.js.map +1 -0
- package/out/shared/src/set-utils.d.ts +9 -0
- package/out/shared/src/set-utils.d.ts.map +1 -0
- package/out/shared/src/set-utils.js +60 -0
- package/out/shared/src/set-utils.js.map +1 -0
- package/out/shared/src/sleep.d.ts +15 -0
- package/out/shared/src/sleep.d.ts.map +1 -0
- package/out/shared/src/sleep.js +54 -0
- package/out/shared/src/sleep.js.map +1 -0
- package/out/shared/src/string-compare.d.ts +2 -0
- package/out/shared/src/string-compare.d.ts.map +1 -0
- package/out/shared/src/string-compare.js +10 -0
- package/out/shared/src/string-compare.js.map +1 -0
- package/out/shared/src/types.d.ts +2 -0
- package/out/shared/src/types.d.ts.map +1 -0
- package/out/shared/src/valita.d.ts +27 -0
- package/out/shared/src/valita.d.ts.map +1 -0
- package/out/shared/src/valita.js +118 -0
- package/out/shared/src/valita.js.map +1 -0
- package/out/shared/src/xxhash.d.ts +3 -0
- package/out/shared/src/xxhash.d.ts.map +1 -0
- package/out/shared/src/xxhash.js +4 -0
- package/out/shared/src/xxhash.js.map +1 -0
- package/out/zero/src/cli.d.ts +3 -0
- package/out/zero/src/cli.d.ts.map +1 -0
- package/out/zero/src/cli.js +3 -0
- package/out/zero/src/cli.js.map +1 -0
- package/out/zero/src/react.d.ts +2 -0
- package/out/zero/src/react.d.ts.map +1 -0
- package/out/zero/src/server/change-streamer.d.ts +2 -0
- package/out/zero/src/server/change-streamer.d.ts.map +1 -0
- package/out/zero/src/server/change-streamer.js +2 -0
- package/out/zero/src/server/change-streamer.js.map +1 -0
- package/out/zero/src/server/main.d.ts +2 -0
- package/out/zero/src/server/main.d.ts.map +1 -0
- package/out/zero/src/server/main.js +2 -0
- package/out/zero/src/server/main.js.map +1 -0
- package/out/zero/src/server/replicator.d.ts +2 -0
- package/out/zero/src/server/replicator.d.ts.map +1 -0
- package/out/zero/src/server/replicator.js +2 -0
- package/out/zero/src/server/replicator.js.map +1 -0
- package/out/zero/src/server/syncer.d.ts +2 -0
- package/out/zero/src/server/syncer.d.ts.map +1 -0
- package/out/zero/src/server/syncer.js +2 -0
- package/out/zero/src/server/syncer.js.map +1 -0
- package/out/zero/src/zero.d.ts +2 -0
- package/out/zero/src/zero.d.ts.map +1 -0
- package/out/zero-cache/src/config/zero-config.d.ts +1509 -0
- package/out/zero-cache/src/config/zero-config.d.ts.map +1 -0
- package/out/zero-cache/src/config/zero-config.js +227 -0
- package/out/zero-cache/src/config/zero-config.js.map +1 -0
- package/out/zero-cache/src/db/lite-tables.d.ts +5 -0
- package/out/zero-cache/src/db/lite-tables.d.ts.map +1 -0
- package/out/zero-cache/src/db/lite-tables.js +75 -0
- package/out/zero-cache/src/db/lite-tables.js.map +1 -0
- package/out/zero-cache/src/db/migration-lite.d.ts +38 -0
- package/out/zero-cache/src/db/migration-lite.d.ts.map +1 -0
- package/out/zero-cache/src/db/migration-lite.js +161 -0
- package/out/zero-cache/src/db/migration-lite.js.map +1 -0
- package/out/zero-cache/src/db/migration.d.ts +38 -0
- package/out/zero-cache/src/db/migration.d.ts.map +1 -0
- package/out/zero-cache/src/db/migration.js +139 -0
- package/out/zero-cache/src/db/migration.js.map +1 -0
- package/out/zero-cache/src/db/statements.d.ts +31 -0
- package/out/zero-cache/src/db/statements.d.ts.map +1 -0
- package/out/zero-cache/src/db/statements.js +48 -0
- package/out/zero-cache/src/db/statements.js.map +1 -0
- package/out/zero-cache/src/db/transaction-pool.d.ts +187 -0
- package/out/zero-cache/src/db/transaction-pool.d.ts.map +1 -0
- package/out/zero-cache/src/db/transaction-pool.js +445 -0
- package/out/zero-cache/src/db/transaction-pool.js.map +1 -0
- package/out/zero-cache/src/server/change-streamer.d.ts +3 -0
- package/out/zero-cache/src/server/change-streamer.d.ts.map +1 -0
- package/out/zero-cache/src/server/change-streamer.js +30 -0
- package/out/zero-cache/src/server/change-streamer.js.map +1 -0
- package/out/zero-cache/src/server/logging.d.ts +6 -0
- package/out/zero-cache/src/server/logging.d.ts.map +1 -0
- package/out/zero-cache/src/server/logging.js +23 -0
- package/out/zero-cache/src/server/logging.js.map +1 -0
- package/out/zero-cache/src/server/main.d.ts +2 -0
- package/out/zero-cache/src/server/main.d.ts.map +1 -0
- package/out/zero-cache/src/server/main.js +92 -0
- package/out/zero-cache/src/server/main.js.map +1 -0
- package/out/zero-cache/src/server/replicator.d.ts +3 -0
- package/out/zero-cache/src/server/replicator.d.ts.map +1 -0
- package/out/zero-cache/src/server/replicator.js +35 -0
- package/out/zero-cache/src/server/replicator.js.map +1 -0
- package/out/zero-cache/src/server/syncer.d.ts +3 -0
- package/out/zero-cache/src/server/syncer.d.ts.map +1 -0
- package/out/zero-cache/src/server/syncer.js +45 -0
- package/out/zero-cache/src/server/syncer.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts +23 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.js +98 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.d.ts +39 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.js +212 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts +110 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer.js +7 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/forwarder.d.ts +19 -0
- package/out/zero-cache/src/services/change-streamer/forwarder.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/forwarder.js +56 -0
- package/out/zero-cache/src/services/change-streamer/forwarder.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/change-source.d.ts +14 -0
- package/out/zero-cache/src/services/change-streamer/pg/change-source.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/change-source.js +206 -0
- package/out/zero-cache/src/services/change-streamer/pg/change-source.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/initial-sync.d.ts +6 -0
- package/out/zero-cache/src/services/change-streamer/pg/initial-sync.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/initial-sync.js +192 -0
- package/out/zero-cache/src/services/change-streamer/pg/initial-sync.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/lsn.d.ts +17 -0
- package/out/zero-cache/src/services/change-streamer/pg/lsn.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/lsn.js +17 -0
- package/out/zero-cache/src/services/change-streamer/pg/lsn.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/create.d.ts +6 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/create.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/create.js +29 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/create.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.d.ts +79 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.js +237 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/lite.d.ts +5 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/lite.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/lite.js +111 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/lite.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/published.d.ts +26 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/published.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/published.js +185 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/published.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/zero.d.ts +11 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/zero.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/zero.js +86 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/zero.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/shard-config.d.ts +19 -0
- package/out/zero-cache/src/services/change-streamer/pg/shard-config.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/shard-config.js +2 -0
- package/out/zero-cache/src/services/change-streamer/pg/shard-config.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/sync-schema.d.ts +4 -0
- package/out/zero-cache/src/services/change-streamer/pg/sync-schema.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/sync-schema.js +12 -0
- package/out/zero-cache/src/services/change-streamer/pg/sync-schema.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/schema/change.d.ts +31 -0
- package/out/zero-cache/src/services/change-streamer/schema/change.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/schema/change.js +2 -0
- package/out/zero-cache/src/services/change-streamer/schema/change.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/schema/init.d.ts +4 -0
- package/out/zero-cache/src/services/change-streamer/schema/init.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/schema/init.js +10 -0
- package/out/zero-cache/src/services/change-streamer/schema/init.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/schema/tables.d.ts +22 -0
- package/out/zero-cache/src/services/change-streamer/schema/tables.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/schema/tables.js +49 -0
- package/out/zero-cache/src/services/change-streamer/schema/tables.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/storer.d.ts +22 -0
- package/out/zero-cache/src/services/change-streamer/storer.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/storer.js +157 -0
- package/out/zero-cache/src/services/change-streamer/storer.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/subscriber.d.ts +27 -0
- package/out/zero-cache/src/services/change-streamer/subscriber.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/subscriber.js +70 -0
- package/out/zero-cache/src/services/change-streamer/subscriber.js.map +1 -0
- package/out/zero-cache/src/services/dispatcher/connect-params.d.ts +20 -0
- package/out/zero-cache/src/services/dispatcher/connect-params.d.ts.map +1 -0
- package/out/zero-cache/src/services/dispatcher/connect-params.js +36 -0
- package/out/zero-cache/src/services/dispatcher/connect-params.js.map +1 -0
- package/out/zero-cache/src/services/dispatcher/dispatcher.d.ts +19 -0
- package/out/zero-cache/src/services/dispatcher/dispatcher.d.ts.map +1 -0
- package/out/zero-cache/src/services/dispatcher/dispatcher.js +55 -0
- package/out/zero-cache/src/services/dispatcher/dispatcher.js.map +1 -0
- package/out/zero-cache/src/services/dispatcher/websocket-handoff.d.ts +11 -0
- package/out/zero-cache/src/services/dispatcher/websocket-handoff.d.ts.map +1 -0
- package/out/zero-cache/src/services/dispatcher/websocket-handoff.js +33 -0
- package/out/zero-cache/src/services/dispatcher/websocket-handoff.js.map +1 -0
- package/out/zero-cache/src/services/limiter/sliding-window-limiter.d.ts +57 -0
- package/out/zero-cache/src/services/limiter/sliding-window-limiter.d.ts.map +1 -0
- package/out/zero-cache/src/services/limiter/sliding-window-limiter.js +130 -0
- package/out/zero-cache/src/services/limiter/sliding-window-limiter.js.map +1 -0
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts +24 -0
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts.map +1 -0
- package/out/zero-cache/src/services/mutagen/mutagen.js +247 -0
- package/out/zero-cache/src/services/mutagen/mutagen.js.map +1 -0
- package/out/zero-cache/src/services/mutagen/write-authorizer.d.ts +20 -0
- package/out/zero-cache/src/services/mutagen/write-authorizer.d.ts.map +1 -0
- package/out/zero-cache/src/services/mutagen/write-authorizer.js +187 -0
- package/out/zero-cache/src/services/mutagen/write-authorizer.js.map +1 -0
- package/out/zero-cache/src/services/replicator/checkpointer.d.ts +79 -0
- package/out/zero-cache/src/services/replicator/checkpointer.d.ts.map +1 -0
- package/out/zero-cache/src/services/replicator/checkpointer.js +124 -0
- package/out/zero-cache/src/services/replicator/checkpointer.js.map +1 -0
- package/out/zero-cache/src/services/replicator/incremental-sync.d.ts +39 -0
- package/out/zero-cache/src/services/replicator/incremental-sync.d.ts.map +1 -0
- package/out/zero-cache/src/services/replicator/incremental-sync.js +342 -0
- package/out/zero-cache/src/services/replicator/incremental-sync.js.map +1 -0
- package/out/zero-cache/src/services/replicator/notifier.d.ts +30 -0
- package/out/zero-cache/src/services/replicator/notifier.d.ts.map +1 -0
- package/out/zero-cache/src/services/replicator/notifier.js +54 -0
- package/out/zero-cache/src/services/replicator/notifier.js.map +1 -0
- package/out/zero-cache/src/services/replicator/replicator.d.ts +65 -0
- package/out/zero-cache/src/services/replicator/replicator.d.ts.map +1 -0
- package/out/zero-cache/src/services/replicator/replicator.js +27 -0
- package/out/zero-cache/src/services/replicator/replicator.js.map +1 -0
- package/out/zero-cache/src/services/replicator/schema/change-log.d.ts +35 -0
- package/out/zero-cache/src/services/replicator/schema/change-log.d.ts.map +1 -0
- package/out/zero-cache/src/services/replicator/schema/change-log.js +78 -0
- package/out/zero-cache/src/services/replicator/schema/change-log.js.map +1 -0
- package/out/zero-cache/src/services/replicator/schema/replication-state.d.ts +25 -0
- package/out/zero-cache/src/services/replicator/schema/replication-state.d.ts.map +1 -0
- package/out/zero-cache/src/services/replicator/schema/replication-state.js +90 -0
- package/out/zero-cache/src/services/replicator/schema/replication-state.js.map +1 -0
- package/out/zero-cache/src/services/runner.d.ts +21 -0
- package/out/zero-cache/src/services/runner.d.ts.map +1 -0
- package/out/zero-cache/src/services/runner.js +63 -0
- package/out/zero-cache/src/services/runner.js.map +1 -0
- package/out/zero-cache/src/services/running-state.d.ts +56 -0
- package/out/zero-cache/src/services/running-state.d.ts.map +1 -0
- package/out/zero-cache/src/services/running-state.js +106 -0
- package/out/zero-cache/src/services/running-state.js.map +1 -0
- package/out/zero-cache/src/services/service.d.ts +29 -0
- package/out/zero-cache/src/services/service.d.ts.map +1 -0
- package/out/zero-cache/src/services/service.js +2 -0
- package/out/zero-cache/src/services/service.js.map +1 -0
- package/out/zero-cache/src/services/view-syncer/client-handler.d.ts +53 -0
- package/out/zero-cache/src/services/view-syncer/client-handler.d.ts.map +1 -0
- package/out/zero-cache/src/services/view-syncer/client-handler.js +184 -0
- package/out/zero-cache/src/services/view-syncer/client-handler.js.map +1 -0
- package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts +44 -0
- package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts.map +1 -0
- package/out/zero-cache/src/services/view-syncer/cvr-store.js +386 -0
- package/out/zero-cache/src/services/view-syncer/cvr-store.js.map +1 -0
- package/out/zero-cache/src/services/view-syncer/cvr.d.ts +146 -0
- package/out/zero-cache/src/services/view-syncer/cvr.d.ts.map +1 -0
- package/out/zero-cache/src/services/view-syncer/cvr.js +446 -0
- package/out/zero-cache/src/services/view-syncer/cvr.js.map +1 -0
- package/out/zero-cache/src/services/view-syncer/database-storage.d.ts +22 -0
- package/out/zero-cache/src/services/view-syncer/database-storage.d.ts.map +1 -0
- package/out/zero-cache/src/services/view-syncer/database-storage.js +129 -0
- package/out/zero-cache/src/services/view-syncer/database-storage.js.map +1 -0
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.d.ts +103 -0
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.d.ts.map +1 -0
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.js +290 -0
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.js.map +1 -0
- package/out/zero-cache/src/services/view-syncer/schema/cvr.d.ts +54 -0
- package/out/zero-cache/src/services/view-syncer/schema/cvr.d.ts.map +1 -0
- package/out/zero-cache/src/services/view-syncer/schema/cvr.js +181 -0
- package/out/zero-cache/src/services/view-syncer/schema/cvr.js.map +1 -0
- package/out/zero-cache/src/services/view-syncer/schema/pg-migrations.d.ts +4 -0
- package/out/zero-cache/src/services/view-syncer/schema/pg-migrations.d.ts.map +1 -0
- package/out/zero-cache/src/services/view-syncer/schema/pg-migrations.js +12 -0
- package/out/zero-cache/src/services/view-syncer/schema/pg-migrations.js.map +1 -0
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts +783 -0
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts.map +1 -0
- package/out/zero-cache/src/services/view-syncer/schema/types.js +213 -0
- package/out/zero-cache/src/services/view-syncer/schema/types.js.map +1 -0
- package/out/zero-cache/src/services/view-syncer/snapshotter.d.ts +166 -0
- package/out/zero-cache/src/services/view-syncer/snapshotter.d.ts.map +1 -0
- package/out/zero-cache/src/services/view-syncer/snapshotter.js +374 -0
- package/out/zero-cache/src/services/view-syncer/snapshotter.js.map +1 -0
- package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts +37 -0
- package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts.map +1 -0
- package/out/zero-cache/src/services/view-syncer/view-syncer.js +522 -0
- package/out/zero-cache/src/services/view-syncer/view-syncer.js.map +1 -0
- package/out/zero-cache/src/types/bigint-json.d.ts +26 -0
- package/out/zero-cache/src/types/bigint-json.d.ts.map +1 -0
- package/out/zero-cache/src/types/bigint-json.js +49 -0
- package/out/zero-cache/src/types/bigint-json.js.map +1 -0
- package/out/zero-cache/src/types/error-for-client.d.ts +7 -0
- package/out/zero-cache/src/types/error-for-client.d.ts.map +1 -0
- package/out/zero-cache/src/types/error-for-client.js +17 -0
- package/out/zero-cache/src/types/error-for-client.js.map +1 -0
- package/out/zero-cache/src/types/lexi-version.d.ts +29 -0
- package/out/zero-cache/src/types/lexi-version.d.ts.map +1 -0
- package/out/zero-cache/src/types/lexi-version.js +36 -0
- package/out/zero-cache/src/types/lexi-version.js.map +1 -0
- package/out/zero-cache/src/types/lite.d.ts +11 -0
- package/out/zero-cache/src/types/lite.d.ts.map +1 -0
- package/out/zero-cache/src/types/lite.js +26 -0
- package/out/zero-cache/src/types/lite.js.map +1 -0
- package/out/zero-cache/src/types/names.d.ts +5 -0
- package/out/zero-cache/src/types/names.d.ts.map +1 -0
- package/out/zero-cache/src/types/names.js +4 -0
- package/out/zero-cache/src/types/names.js.map +1 -0
- package/out/zero-cache/src/types/pg.d.ts +31 -0
- package/out/zero-cache/src/types/pg.d.ts.map +1 -0
- package/out/zero-cache/src/types/pg.js +60 -0
- package/out/zero-cache/src/types/pg.js.map +1 -0
- package/out/zero-cache/src/types/processes.d.ts +57 -0
- package/out/zero-cache/src/types/processes.d.ts.map +1 -0
- package/out/zero-cache/src/types/processes.js +121 -0
- package/out/zero-cache/src/types/processes.js.map +1 -0
- package/out/zero-cache/src/types/row-key.d.ts +37 -0
- package/out/zero-cache/src/types/row-key.d.ts.map +1 -0
- package/out/zero-cache/src/types/row-key.js +64 -0
- package/out/zero-cache/src/types/row-key.js.map +1 -0
- package/out/zero-cache/src/types/satisfies.d.ts +14 -0
- package/out/zero-cache/src/types/satisfies.d.ts.map +1 -0
- package/out/zero-cache/src/types/satisfies.js +2 -0
- package/out/zero-cache/src/types/satisfies.js.map +1 -0
- package/out/zero-cache/src/types/specs.d.ts +29 -0
- package/out/zero-cache/src/types/specs.d.ts.map +1 -0
- package/out/zero-cache/src/types/specs.js +2 -0
- package/out/zero-cache/src/types/specs.js.map +1 -0
- package/out/zero-cache/src/types/sql.d.ts +11 -0
- package/out/zero-cache/src/types/sql.d.ts.map +1 -0
- package/out/zero-cache/src/types/sql.js +15 -0
- package/out/zero-cache/src/types/sql.js.map +1 -0
- package/out/zero-cache/src/types/streams.d.ts +33 -0
- package/out/zero-cache/src/types/streams.d.ts.map +1 -0
- package/out/zero-cache/src/types/streams.js +141 -0
- package/out/zero-cache/src/types/streams.js.map +1 -0
- package/out/zero-cache/src/types/subscription.d.ts +158 -0
- package/out/zero-cache/src/types/subscription.d.ts.map +1 -0
- package/out/zero-cache/src/types/subscription.js +233 -0
- package/out/zero-cache/src/types/subscription.js.map +1 -0
- package/out/zero-cache/src/types/timeout.d.ts +11 -0
- package/out/zero-cache/src/types/timeout.d.ts.map +1 -0
- package/out/zero-cache/src/types/timeout.js +23 -0
- package/out/zero-cache/src/types/timeout.js.map +1 -0
- package/out/zero-cache/src/types/url-params.d.ts +10 -0
- package/out/zero-cache/src/types/url-params.d.ts.map +1 -0
- package/out/zero-cache/src/types/url-params.js +35 -0
- package/out/zero-cache/src/types/url-params.js.map +1 -0
- package/out/zero-cache/src/workers/connection.d.ts +25 -0
- package/out/zero-cache/src/workers/connection.d.ts.map +1 -0
- package/out/zero-cache/src/workers/connection.js +189 -0
- package/out/zero-cache/src/workers/connection.js.map +1 -0
- package/out/zero-cache/src/workers/replicator.d.ts +17 -0
- package/out/zero-cache/src/workers/replicator.d.ts.map +1 -0
- package/out/zero-cache/src/workers/replicator.js +105 -0
- package/out/zero-cache/src/workers/replicator.js.map +1 -0
- package/out/zero-cache/src/workers/syncer.d.ts +28 -0
- package/out/zero-cache/src/workers/syncer.d.ts.map +1 -0
- package/out/zero-cache/src/workers/syncer.js +72 -0
- package/out/zero-cache/src/workers/syncer.js.map +1 -0
- package/out/zero-client/src/client/context.d.ts +23 -0
- package/out/zero-client/src/client/context.d.ts.map +1 -0
- package/out/zero-client/src/client/crud.d.ts +52 -0
- package/out/zero-client/src/client/crud.d.ts.map +1 -0
- package/out/zero-client/src/client/enable-analytics.d.ts +3 -0
- package/out/zero-client/src/client/enable-analytics.d.ts.map +1 -0
- package/out/zero-client/src/client/http-string.d.ts +7 -0
- package/out/zero-client/src/client/http-string.d.ts.map +1 -0
- package/out/zero-client/src/client/keys.d.ts +11 -0
- package/out/zero-client/src/client/keys.d.ts.map +1 -0
- package/out/zero-client/src/client/log-options.d.ts +12 -0
- package/out/zero-client/src/client/log-options.d.ts.map +1 -0
- package/out/zero-client/src/client/metrics.d.ts +115 -0
- package/out/zero-client/src/client/metrics.d.ts.map +1 -0
- package/out/zero-client/src/client/options.d.ts +94 -0
- package/out/zero-client/src/client/options.d.ts.map +1 -0
- package/out/zero-client/src/client/query-manager.d.ts +16 -0
- package/out/zero-client/src/client/query-manager.d.ts.map +1 -0
- package/out/zero-client/src/client/reload-error-handler.d.ts +5 -0
- package/out/zero-client/src/client/reload-error-handler.d.ts.map +1 -0
- package/out/zero-client/src/client/replicache-types.d.ts +48 -0
- package/out/zero-client/src/client/replicache-types.d.ts.map +1 -0
- package/out/zero-client/src/client/server-error.d.ts +12 -0
- package/out/zero-client/src/client/server-error.d.ts.map +1 -0
- package/out/zero-client/src/client/server-option.d.ts +3 -0
- package/out/zero-client/src/client/server-option.d.ts.map +1 -0
- package/out/zero-client/src/client/version.d.ts +5 -0
- package/out/zero-client/src/client/version.d.ts.map +1 -0
- package/out/zero-client/src/client/zero-poke-handler.d.ts +28 -0
- package/out/zero-client/src/client/zero-poke-handler.d.ts.map +1 -0
- package/out/zero-client/src/client/zero.d.ts +183 -0
- package/out/zero-client/src/client/zero.d.ts.map +1 -0
- package/out/zero-client/src/mod.d.ts +9 -0
- package/out/zero-client/src/mod.d.ts.map +1 -0
- package/out/zero-client/src/util/nanoid.d.ts +2 -0
- package/out/zero-client/src/util/nanoid.d.ts.map +1 -0
- package/out/zero-client/src/util/socket.d.ts +3 -0
- package/out/zero-client/src/util/socket.d.ts.map +1 -0
- package/out/zero-protocol/src/ast.d.ts +69 -0
- package/out/zero-protocol/src/ast.d.ts.map +1 -0
- package/out/zero-protocol/src/ast.js +64 -0
- package/out/zero-protocol/src/ast.js.map +1 -0
- package/out/zero-protocol/src/change-desired-queries.d.ts +71 -0
- package/out/zero-protocol/src/change-desired-queries.d.ts.map +1 -0
- package/out/zero-protocol/src/change-desired-queries.js +10 -0
- package/out/zero-protocol/src/change-desired-queries.js.map +1 -0
- package/out/zero-protocol/src/clients-patch.d.ts +37 -0
- package/out/zero-protocol/src/clients-patch.d.ts.map +1 -0
- package/out/zero-protocol/src/clients-patch.js +15 -0
- package/out/zero-protocol/src/clients-patch.js.map +1 -0
- package/out/zero-protocol/src/connect.d.ts +88 -0
- package/out/zero-protocol/src/connect.d.ts.map +1 -0
- package/out/zero-protocol/src/connect.js +25 -0
- package/out/zero-protocol/src/connect.js.map +1 -0
- package/out/zero-protocol/src/delete-clients.d.ts +11 -0
- package/out/zero-protocol/src/delete-clients.d.ts.map +1 -0
- package/out/zero-protocol/src/delete-clients.js +9 -0
- package/out/zero-protocol/src/delete-clients.js.map +1 -0
- package/out/zero-protocol/src/down.d.ts +110 -0
- package/out/zero-protocol/src/down.d.ts.map +1 -0
- package/out/zero-protocol/src/down.js +8 -0
- package/out/zero-protocol/src/down.js.map +1 -0
- package/out/zero-protocol/src/entities-patch.d.ts +66 -0
- package/out/zero-protocol/src/entities-patch.d.ts.map +1 -0
- package/out/zero-protocol/src/entities-patch.js +27 -0
- package/out/zero-protocol/src/entities-patch.js.map +1 -0
- package/out/zero-protocol/src/entity.d.ts +9 -0
- package/out/zero-protocol/src/entity.d.ts.map +1 -0
- package/out/zero-protocol/src/entity.js +8 -0
- package/out/zero-protocol/src/entity.js.map +1 -0
- package/out/zero-protocol/src/error.d.ts +19 -0
- package/out/zero-protocol/src/error.d.ts.map +1 -0
- package/out/zero-protocol/src/error.js +26 -0
- package/out/zero-protocol/src/error.js.map +1 -0
- package/out/zero-protocol/src/mod.d.ts +16 -0
- package/out/zero-protocol/src/mod.d.ts.map +1 -0
- package/out/zero-protocol/src/mod.js +16 -0
- package/out/zero-protocol/src/mod.js.map +1 -0
- package/out/zero-protocol/src/ping.d.ts +6 -0
- package/out/zero-protocol/src/ping.d.ts.map +1 -0
- package/out/zero-protocol/src/ping.js +4 -0
- package/out/zero-protocol/src/ping.js.map +1 -0
- package/out/zero-protocol/src/poke.d.ts +236 -0
- package/out/zero-protocol/src/poke.d.ts.map +1 -0
- package/out/zero-protocol/src/poke.js +69 -0
- package/out/zero-protocol/src/poke.js.map +1 -0
- package/out/zero-protocol/src/pong.d.ts +6 -0
- package/out/zero-protocol/src/pong.d.ts.map +1 -0
- package/out/zero-protocol/src/pong.js +4 -0
- package/out/zero-protocol/src/pong.js.map +1 -0
- package/out/zero-protocol/src/pull.d.ts +26 -0
- package/out/zero-protocol/src/pull.d.ts.map +1 -0
- package/out/zero-protocol/src/pull.js +24 -0
- package/out/zero-protocol/src/pull.js.map +1 -0
- package/out/zero-protocol/src/push.d.ts +257 -0
- package/out/zero-protocol/src/push.d.ts.map +1 -0
- package/out/zero-protocol/src/push.js +77 -0
- package/out/zero-protocol/src/push.js.map +1 -0
- package/out/zero-protocol/src/queries-patch.d.ts +103 -0
- package/out/zero-protocol/src/queries-patch.d.ts.map +1 -0
- package/out/zero-protocol/src/queries-patch.js +17 -0
- package/out/zero-protocol/src/queries-patch.js.map +1 -0
- package/out/zero-protocol/src/up.d.ts +116 -0
- package/out/zero-protocol/src/up.d.ts.map +1 -0
- package/out/zero-protocol/src/up.js +9 -0
- package/out/zero-protocol/src/up.js.map +1 -0
- package/out/zero-protocol/src/version.d.ts +6 -0
- package/out/zero-protocol/src/version.d.ts.map +1 -0
- package/out/zero-protocol/src/version.js +4 -0
- package/out/zero-protocol/src/version.js.map +1 -0
- package/out/zero-react/src/mod.d.ts +3 -0
- package/out/zero-react/src/mod.d.ts.map +1 -0
- package/out/zero-react/src/use-query.d.ts +3 -0
- package/out/zero-react/src/use-query.d.ts.map +1 -0
- package/out/zero-react/src/use-zero.d.ts +8 -0
- package/out/zero-react/src/use-zero.d.ts.map +1 -0
- package/out/zero.js +7000 -0
- package/out/zero.js.map +7 -0
- package/out/zql/src/zql/ast/ast.d.ts +84 -0
- package/out/zql/src/zql/ast/ast.d.ts.map +1 -0
- package/out/zql/src/zql/ast/ast.js +54 -0
- package/out/zql/src/zql/ast/ast.js.map +1 -0
- package/out/zql/src/zql/builder/builder.d.ts +56 -0
- package/out/zql/src/zql/builder/builder.d.ts.map +1 -0
- package/out/zql/src/zql/builder/builder.js +112 -0
- package/out/zql/src/zql/builder/builder.js.map +1 -0
- package/out/zql/src/zql/builder/error.d.ts +3 -0
- package/out/zql/src/zql/builder/error.d.ts.map +1 -0
- package/out/zql/src/zql/builder/error.js +3 -0
- package/out/zql/src/zql/builder/error.js.map +1 -0
- package/out/zql/src/zql/builder/filter.d.ts +6 -0
- package/out/zql/src/zql/builder/filter.d.ts.map +1 -0
- package/out/zql/src/zql/builder/filter.js +53 -0
- package/out/zql/src/zql/builder/filter.js.map +1 -0
- package/out/zql/src/zql/builder/like.d.ts +3 -0
- package/out/zql/src/zql/builder/like.d.ts.map +1 -0
- package/out/zql/src/zql/builder/like.js +60 -0
- package/out/zql/src/zql/builder/like.js.map +1 -0
- package/out/zql/src/zql/ivm/array-view.d.ts +42 -0
- package/out/zql/src/zql/ivm/array-view.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/change.d.ts +44 -0
- package/out/zql/src/zql/ivm/change.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/change.js +2 -0
- package/out/zql/src/zql/ivm/change.js.map +1 -0
- package/out/zql/src/zql/ivm/data.d.ts +72 -0
- package/out/zql/src/zql/ivm/data.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/data.js +84 -0
- package/out/zql/src/zql/ivm/data.js.map +1 -0
- package/out/zql/src/zql/ivm/filter.d.ts +27 -0
- package/out/zql/src/zql/ivm/filter.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/filter.js +60 -0
- package/out/zql/src/zql/ivm/filter.js.map +1 -0
- package/out/zql/src/zql/ivm/join.d.ts +37 -0
- package/out/zql/src/zql/ivm/join.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/join.js +228 -0
- package/out/zql/src/zql/ivm/join.js.map +1 -0
- package/out/zql/src/zql/ivm/lookahead-iterator.d.ts +13 -0
- package/out/zql/src/zql/ivm/lookahead-iterator.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/lookahead-iterator.js +45 -0
- package/out/zql/src/zql/ivm/lookahead-iterator.js.map +1 -0
- package/out/zql/src/zql/ivm/maybe-split-and-push-edit-change.d.ts +10 -0
- package/out/zql/src/zql/ivm/maybe-split-and-push-edit-change.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/maybe-split-and-push-edit-change.js +34 -0
- package/out/zql/src/zql/ivm/maybe-split-and-push-edit-change.js.map +1 -0
- package/out/zql/src/zql/ivm/memory-source.d.ts +65 -0
- package/out/zql/src/zql/ivm/memory-source.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/memory-source.js +508 -0
- package/out/zql/src/zql/ivm/memory-source.js.map +1 -0
- package/out/zql/src/zql/ivm/memory-storage.d.ts +18 -0
- package/out/zql/src/zql/ivm/memory-storage.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/operator.d.ts +89 -0
- package/out/zql/src/zql/ivm/operator.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/operator.js +2 -0
- package/out/zql/src/zql/ivm/operator.js.map +1 -0
- package/out/zql/src/zql/ivm/schema.d.ts +29 -0
- package/out/zql/src/zql/ivm/schema.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/schema.js +3 -0
- package/out/zql/src/zql/ivm/schema.js.map +1 -0
- package/out/zql/src/zql/ivm/skip.d.ts +24 -0
- package/out/zql/src/zql/ivm/skip.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/skip.js +113 -0
- package/out/zql/src/zql/ivm/skip.js.map +1 -0
- package/out/zql/src/zql/ivm/source.d.ts +57 -0
- package/out/zql/src/zql/ivm/source.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/source.js +2 -0
- package/out/zql/src/zql/ivm/source.js.map +1 -0
- package/out/zql/src/zql/ivm/stream.d.ts +11 -0
- package/out/zql/src/zql/ivm/stream.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/stream.js +19 -0
- package/out/zql/src/zql/ivm/stream.js.map +1 -0
- package/out/zql/src/zql/ivm/take.d.ts +24 -0
- package/out/zql/src/zql/ivm/take.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/take.js +453 -0
- package/out/zql/src/zql/ivm/take.js.map +1 -0
- package/out/zql/src/zql/query/query-impl.d.ts +45 -0
- package/out/zql/src/zql/query/query-impl.d.ts.map +1 -0
- package/out/zql/src/zql/query/query.d.ts +130 -0
- package/out/zql/src/zql/query/query.d.ts.map +1 -0
- package/out/zql/src/zql/query/schema.d.ts +53 -0
- package/out/zql/src/zql/query/schema.d.ts.map +1 -0
- package/out/zql/src/zql/query/typed-view.d.ts +10 -0
- package/out/zql/src/zql/query/typed-view.d.ts.map +1 -0
- package/out/zqlite/src/db.d.ts +23 -0
- package/out/zqlite/src/db.d.ts.map +1 -0
- package/out/zqlite/src/db.js +117 -0
- package/out/zqlite/src/db.js.map +1 -0
- package/out/zqlite/src/internal/sql.d.ts +9 -0
- package/out/zqlite/src/internal/sql.d.ts.map +1 -0
- package/out/zqlite/src/internal/sql.js +14 -0
- package/out/zqlite/src/internal/sql.js.map +1 -0
- package/out/zqlite/src/internal/statement-cache.d.ts +67 -0
- package/out/zqlite/src/internal/statement-cache.d.ts.map +1 -0
- package/out/zqlite/src/internal/statement-cache.js +119 -0
- package/out/zqlite/src/internal/statement-cache.js.map +1 -0
- package/out/zqlite/src/table-source.d.ts +43 -0
- package/out/zqlite/src/table-source.d.ts.map +1 -0
- package/out/zqlite/src/table-source.js +393 -0
- package/out/zqlite/src/table-source.js.map +1 -0
- package/package.json +79 -0
- package/tool/install-sqlite3.js +37 -0
|
@@ -0,0 +1,783 @@
|
|
|
1
|
+
import * as v from '../../../../../shared/src/valita.js';
|
|
2
|
+
export declare const cvrVersionSchema: v.ObjectType<{
|
|
3
|
+
/**
|
|
4
|
+
* The database `stateVersion` with which the rows in the CVR are consistent.
|
|
5
|
+
*/
|
|
6
|
+
stateVersion: v.Type<string>;
|
|
7
|
+
/**
|
|
8
|
+
* `minorVersion` is subversion of `stateVersion` that is initially absent for each
|
|
9
|
+
* `stateVersion`, and incremented for configuration changes that affect the contents
|
|
10
|
+
* of the CVR such as:
|
|
11
|
+
*
|
|
12
|
+
* * client set changes
|
|
13
|
+
* * query set changes
|
|
14
|
+
* * query transformation changes (which may happen for changes
|
|
15
|
+
* in server-side logic or authorization policies)
|
|
16
|
+
*
|
|
17
|
+
* Such configuration changes are always correlated with a change to one or more
|
|
18
|
+
* `/meta/...` records in the CVR, often (but not always) with corresponding
|
|
19
|
+
* patches in `/patches/meta/...`.
|
|
20
|
+
*
|
|
21
|
+
* When the `stateVersion` moves forward, the `minorVersion` is reset to absent.
|
|
22
|
+
* In this manner it behaves like the analogous concept in semantic versioning.
|
|
23
|
+
*/
|
|
24
|
+
minorVersion: v.Optional<number>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
export type CVRVersion = v.Infer<typeof cvrVersionSchema>;
|
|
27
|
+
export declare function oneAfter(v: NullableCVRVersion): CVRVersion;
|
|
28
|
+
export type NullableCVRVersion = CVRVersion | null;
|
|
29
|
+
export declare function cmpVersions(a: NullableCVRVersion, b: NullableCVRVersion): number;
|
|
30
|
+
export declare function versionToCookie(v: CVRVersion): string;
|
|
31
|
+
export declare function versionToNullableCookie(v: NullableCVRVersion): string | null;
|
|
32
|
+
export declare function cookieToVersion(cookie: string | null): NullableCVRVersion;
|
|
33
|
+
export declare const lastActiveSchema: v.ObjectType<{
|
|
34
|
+
epochMillis: v.Type<number>;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
export type LastActive = v.Infer<typeof lastActiveSchema>;
|
|
37
|
+
export declare const cvrIDSchema: v.ObjectType<{
|
|
38
|
+
id: v.Type<string>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
export type CvrID = v.Infer<typeof cvrIDSchema>;
|
|
41
|
+
export declare const clientRecordSchema: v.ObjectType<Omit<{
|
|
42
|
+
/**
|
|
43
|
+
* CVR records store the CVRVersion at which the record was last patched into
|
|
44
|
+
* the CVR, which corresponds with a patch row that is cleaned up when the
|
|
45
|
+
* record is changed (updated, deleted, and re-added in the case of rows).
|
|
46
|
+
*
|
|
47
|
+
* Tombstones are stored for row records but not for config records. This means
|
|
48
|
+
* that "orphaned" delete patches for config records may exist, and therefore
|
|
49
|
+
* scans of config patches must always run until the end of the list. On the
|
|
50
|
+
* contrary, for row patches, the row record tombstones allow cleanup of delete
|
|
51
|
+
* patches.
|
|
52
|
+
*/
|
|
53
|
+
patchVersion: v.ObjectType<{
|
|
54
|
+
/**
|
|
55
|
+
* The database `stateVersion` with which the rows in the CVR are consistent.
|
|
56
|
+
*/
|
|
57
|
+
stateVersion: v.Type<string>;
|
|
58
|
+
/**
|
|
59
|
+
* `minorVersion` is subversion of `stateVersion` that is initially absent for each
|
|
60
|
+
* `stateVersion`, and incremented for configuration changes that affect the contents
|
|
61
|
+
* of the CVR such as:
|
|
62
|
+
*
|
|
63
|
+
* * client set changes
|
|
64
|
+
* * query set changes
|
|
65
|
+
* * query transformation changes (which may happen for changes
|
|
66
|
+
* in server-side logic or authorization policies)
|
|
67
|
+
*
|
|
68
|
+
* Such configuration changes are always correlated with a change to one or more
|
|
69
|
+
* `/meta/...` records in the CVR, often (but not always) with corresponding
|
|
70
|
+
* patches in `/patches/meta/...`.
|
|
71
|
+
*
|
|
72
|
+
* When the `stateVersion` moves forward, the `minorVersion` is reset to absent.
|
|
73
|
+
* In this manner it behaves like the analogous concept in semantic versioning.
|
|
74
|
+
*/
|
|
75
|
+
minorVersion: v.Optional<number>;
|
|
76
|
+
}, undefined>;
|
|
77
|
+
}, "id" | "desiredQueryIDs"> & {
|
|
78
|
+
/** The client ID, of which there can be multiple for a client group view. */
|
|
79
|
+
id: v.Type<string>;
|
|
80
|
+
/** The client's desired query IDs. Patch information is stored in the QueryRecord. */
|
|
81
|
+
desiredQueryIDs: v.ArrayType<[], v.Type<string>>;
|
|
82
|
+
}, undefined>;
|
|
83
|
+
export type ClientRecord = v.Infer<typeof clientRecordSchema>;
|
|
84
|
+
export declare const baseQueryRecordSchema: v.ObjectType<{
|
|
85
|
+
/** The client-specified ID used to identify this query. Typically a hash. */
|
|
86
|
+
id: v.Type<string>;
|
|
87
|
+
/** The original AST as supplied by the client. */
|
|
88
|
+
ast: v.ObjectType<{
|
|
89
|
+
schema: v.Optional<string>;
|
|
90
|
+
table: v.Type<string>;
|
|
91
|
+
alias: v.Optional<string>;
|
|
92
|
+
where: v.Optional<readonly {
|
|
93
|
+
type: "simple";
|
|
94
|
+
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
95
|
+
field: string;
|
|
96
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
97
|
+
type: "static";
|
|
98
|
+
anchor: "authData" | "preMutationRow";
|
|
99
|
+
field: string;
|
|
100
|
+
};
|
|
101
|
+
}[]>;
|
|
102
|
+
related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
|
|
103
|
+
limit: v.Optional<number>;
|
|
104
|
+
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
105
|
+
start: v.Optional<{
|
|
106
|
+
row: Record<string, string | number | boolean | null | undefined>;
|
|
107
|
+
exclusive: boolean;
|
|
108
|
+
}>;
|
|
109
|
+
}, undefined>;
|
|
110
|
+
/**
|
|
111
|
+
* The hash of the query after server-side transformations, which include:
|
|
112
|
+
*
|
|
113
|
+
* * Normalization (which may differ from what the client does)
|
|
114
|
+
* * Query "expansion" to include primary keys and query-execution-related columns
|
|
115
|
+
* * Authorization transforms
|
|
116
|
+
*
|
|
117
|
+
* Transformations depend on conditions that are independent of the db state version,
|
|
118
|
+
* such as server-side logic and authorization policies. As such, the version of a CVR
|
|
119
|
+
* version may need to be advanced independent of db state changes. This is done
|
|
120
|
+
* via the `minorVersion` counter of the CVRVersion object, which is used to account
|
|
121
|
+
* for both changes to the query set and changes to query transformations (which are
|
|
122
|
+
* effectively remove-old-query + add-new-query).
|
|
123
|
+
*
|
|
124
|
+
* Note that the transformed AST itself is **not** stored, as the result of the previous
|
|
125
|
+
* transformation is not useful in and of itself. If the current transformation results in
|
|
126
|
+
* a different hash than that of the transformation used for the last version of the CVR,
|
|
127
|
+
* it is simply handled by invalidating the existing rows, re-executed the query with
|
|
128
|
+
* the new transformation, and advancing the CVR's `minorVersion` and this query's
|
|
129
|
+
* `transformationVersion`.
|
|
130
|
+
*
|
|
131
|
+
* Note that the transformationHash is only stored when the query has reached the "gotten"
|
|
132
|
+
* state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
|
|
133
|
+
*/
|
|
134
|
+
transformationHash: v.Optional<string>;
|
|
135
|
+
/**
|
|
136
|
+
* The CVR version corresponding to the `transformationHash`. This essentially tracks when
|
|
137
|
+
* this version of the query was effectively added to the CVR (as opposed to the
|
|
138
|
+
* `patchVersion`, which is simply when the client was notified that its query was added
|
|
139
|
+
* to the gotten set). Catchup of clients from old CVR versions require executing all
|
|
140
|
+
* queries with a newer `transformationVersion`.
|
|
141
|
+
*/
|
|
142
|
+
transformationVersion: v.Optional<{
|
|
143
|
+
minorVersion?: number | undefined;
|
|
144
|
+
stateVersion: string;
|
|
145
|
+
}>;
|
|
146
|
+
}, undefined>;
|
|
147
|
+
/**
|
|
148
|
+
* Internal queries track rows in the database for internal use, such as the
|
|
149
|
+
* `lastMutationID`s in the `zero.clients` table. They participate in the standard
|
|
150
|
+
* invalidation / update logic for row contents, but not in the desired/got or
|
|
151
|
+
* size-based quota logic for client-requested queries.
|
|
152
|
+
*/
|
|
153
|
+
export declare const internalQueryRecordSchema: v.ObjectType<Omit<{
|
|
154
|
+
/** The client-specified ID used to identify this query. Typically a hash. */
|
|
155
|
+
id: v.Type<string>;
|
|
156
|
+
/** The original AST as supplied by the client. */
|
|
157
|
+
ast: v.ObjectType<{
|
|
158
|
+
schema: v.Optional<string>;
|
|
159
|
+
table: v.Type<string>;
|
|
160
|
+
alias: v.Optional<string>;
|
|
161
|
+
where: v.Optional<readonly {
|
|
162
|
+
type: "simple";
|
|
163
|
+
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
164
|
+
field: string;
|
|
165
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
166
|
+
type: "static";
|
|
167
|
+
anchor: "authData" | "preMutationRow";
|
|
168
|
+
field: string;
|
|
169
|
+
};
|
|
170
|
+
}[]>;
|
|
171
|
+
related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
|
|
172
|
+
limit: v.Optional<number>;
|
|
173
|
+
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
174
|
+
start: v.Optional<{
|
|
175
|
+
row: Record<string, string | number | boolean | null | undefined>;
|
|
176
|
+
exclusive: boolean;
|
|
177
|
+
}>;
|
|
178
|
+
}, undefined>;
|
|
179
|
+
/**
|
|
180
|
+
* The hash of the query after server-side transformations, which include:
|
|
181
|
+
*
|
|
182
|
+
* * Normalization (which may differ from what the client does)
|
|
183
|
+
* * Query "expansion" to include primary keys and query-execution-related columns
|
|
184
|
+
* * Authorization transforms
|
|
185
|
+
*
|
|
186
|
+
* Transformations depend on conditions that are independent of the db state version,
|
|
187
|
+
* such as server-side logic and authorization policies. As such, the version of a CVR
|
|
188
|
+
* version may need to be advanced independent of db state changes. This is done
|
|
189
|
+
* via the `minorVersion` counter of the CVRVersion object, which is used to account
|
|
190
|
+
* for both changes to the query set and changes to query transformations (which are
|
|
191
|
+
* effectively remove-old-query + add-new-query).
|
|
192
|
+
*
|
|
193
|
+
* Note that the transformed AST itself is **not** stored, as the result of the previous
|
|
194
|
+
* transformation is not useful in and of itself. If the current transformation results in
|
|
195
|
+
* a different hash than that of the transformation used for the last version of the CVR,
|
|
196
|
+
* it is simply handled by invalidating the existing rows, re-executed the query with
|
|
197
|
+
* the new transformation, and advancing the CVR's `minorVersion` and this query's
|
|
198
|
+
* `transformationVersion`.
|
|
199
|
+
*
|
|
200
|
+
* Note that the transformationHash is only stored when the query has reached the "gotten"
|
|
201
|
+
* state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
|
|
202
|
+
*/
|
|
203
|
+
transformationHash: v.Optional<string>;
|
|
204
|
+
/**
|
|
205
|
+
* The CVR version corresponding to the `transformationHash`. This essentially tracks when
|
|
206
|
+
* this version of the query was effectively added to the CVR (as opposed to the
|
|
207
|
+
* `patchVersion`, which is simply when the client was notified that its query was added
|
|
208
|
+
* to the gotten set). Catchup of clients from old CVR versions require executing all
|
|
209
|
+
* queries with a newer `transformationVersion`.
|
|
210
|
+
*/
|
|
211
|
+
transformationVersion: v.Optional<{
|
|
212
|
+
minorVersion?: number | undefined;
|
|
213
|
+
stateVersion: string;
|
|
214
|
+
}>;
|
|
215
|
+
}, "internal"> & {
|
|
216
|
+
internal: v.Type<true>;
|
|
217
|
+
}, undefined>;
|
|
218
|
+
export type InternalQueryRecord = v.Infer<typeof internalQueryRecordSchema>;
|
|
219
|
+
export declare const clientQueryRecordSchema: v.ObjectType<Omit<{
|
|
220
|
+
/** The client-specified ID used to identify this query. Typically a hash. */
|
|
221
|
+
id: v.Type<string>;
|
|
222
|
+
/** The original AST as supplied by the client. */
|
|
223
|
+
ast: v.ObjectType<{
|
|
224
|
+
schema: v.Optional<string>;
|
|
225
|
+
table: v.Type<string>;
|
|
226
|
+
alias: v.Optional<string>;
|
|
227
|
+
where: v.Optional<readonly {
|
|
228
|
+
type: "simple";
|
|
229
|
+
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
230
|
+
field: string;
|
|
231
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
232
|
+
type: "static";
|
|
233
|
+
anchor: "authData" | "preMutationRow";
|
|
234
|
+
field: string;
|
|
235
|
+
};
|
|
236
|
+
}[]>;
|
|
237
|
+
related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
|
|
238
|
+
limit: v.Optional<number>;
|
|
239
|
+
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
240
|
+
start: v.Optional<{
|
|
241
|
+
row: Record<string, string | number | boolean | null | undefined>;
|
|
242
|
+
exclusive: boolean;
|
|
243
|
+
}>;
|
|
244
|
+
}, undefined>;
|
|
245
|
+
/**
|
|
246
|
+
* The hash of the query after server-side transformations, which include:
|
|
247
|
+
*
|
|
248
|
+
* * Normalization (which may differ from what the client does)
|
|
249
|
+
* * Query "expansion" to include primary keys and query-execution-related columns
|
|
250
|
+
* * Authorization transforms
|
|
251
|
+
*
|
|
252
|
+
* Transformations depend on conditions that are independent of the db state version,
|
|
253
|
+
* such as server-side logic and authorization policies. As such, the version of a CVR
|
|
254
|
+
* version may need to be advanced independent of db state changes. This is done
|
|
255
|
+
* via the `minorVersion` counter of the CVRVersion object, which is used to account
|
|
256
|
+
* for both changes to the query set and changes to query transformations (which are
|
|
257
|
+
* effectively remove-old-query + add-new-query).
|
|
258
|
+
*
|
|
259
|
+
* Note that the transformed AST itself is **not** stored, as the result of the previous
|
|
260
|
+
* transformation is not useful in and of itself. If the current transformation results in
|
|
261
|
+
* a different hash than that of the transformation used for the last version of the CVR,
|
|
262
|
+
* it is simply handled by invalidating the existing rows, re-executed the query with
|
|
263
|
+
* the new transformation, and advancing the CVR's `minorVersion` and this query's
|
|
264
|
+
* `transformationVersion`.
|
|
265
|
+
*
|
|
266
|
+
* Note that the transformationHash is only stored when the query has reached the "gotten"
|
|
267
|
+
* state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
|
|
268
|
+
*/
|
|
269
|
+
transformationHash: v.Optional<string>;
|
|
270
|
+
/**
|
|
271
|
+
* The CVR version corresponding to the `transformationHash`. This essentially tracks when
|
|
272
|
+
* this version of the query was effectively added to the CVR (as opposed to the
|
|
273
|
+
* `patchVersion`, which is simply when the client was notified that its query was added
|
|
274
|
+
* to the gotten set). Catchup of clients from old CVR versions require executing all
|
|
275
|
+
* queries with a newer `transformationVersion`.
|
|
276
|
+
*/
|
|
277
|
+
transformationVersion: v.Optional<{
|
|
278
|
+
minorVersion?: number | undefined;
|
|
279
|
+
stateVersion: string;
|
|
280
|
+
}>;
|
|
281
|
+
}, "internal" | "patchVersion" | "desiredBy"> & {
|
|
282
|
+
internal: v.Optional<false>;
|
|
283
|
+
patchVersion: v.Optional<{
|
|
284
|
+
minorVersion?: number | undefined;
|
|
285
|
+
stateVersion: string;
|
|
286
|
+
}>;
|
|
287
|
+
desiredBy: v.Type<Record<string, {
|
|
288
|
+
minorVersion?: number | undefined;
|
|
289
|
+
stateVersion: string;
|
|
290
|
+
}>>;
|
|
291
|
+
}, undefined>;
|
|
292
|
+
export type ClientQueryRecord = v.Infer<typeof clientQueryRecordSchema>;
|
|
293
|
+
export declare const queryRecordSchema: v.UnionType<[v.ObjectType<Omit<{
|
|
294
|
+
/** The client-specified ID used to identify this query. Typically a hash. */
|
|
295
|
+
id: v.Type<string>;
|
|
296
|
+
/** The original AST as supplied by the client. */
|
|
297
|
+
ast: v.ObjectType<{
|
|
298
|
+
schema: v.Optional<string>;
|
|
299
|
+
table: v.Type<string>;
|
|
300
|
+
alias: v.Optional<string>;
|
|
301
|
+
where: v.Optional<readonly {
|
|
302
|
+
type: "simple";
|
|
303
|
+
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
304
|
+
field: string;
|
|
305
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
306
|
+
type: "static";
|
|
307
|
+
anchor: "authData" | "preMutationRow";
|
|
308
|
+
field: string;
|
|
309
|
+
};
|
|
310
|
+
}[]>;
|
|
311
|
+
related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
|
|
312
|
+
limit: v.Optional<number>;
|
|
313
|
+
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
314
|
+
start: v.Optional<{
|
|
315
|
+
row: Record<string, string | number | boolean | null | undefined>;
|
|
316
|
+
exclusive: boolean;
|
|
317
|
+
}>;
|
|
318
|
+
}, undefined>;
|
|
319
|
+
/**
|
|
320
|
+
* The hash of the query after server-side transformations, which include:
|
|
321
|
+
*
|
|
322
|
+
* * Normalization (which may differ from what the client does)
|
|
323
|
+
* * Query "expansion" to include primary keys and query-execution-related columns
|
|
324
|
+
* * Authorization transforms
|
|
325
|
+
*
|
|
326
|
+
* Transformations depend on conditions that are independent of the db state version,
|
|
327
|
+
* such as server-side logic and authorization policies. As such, the version of a CVR
|
|
328
|
+
* version may need to be advanced independent of db state changes. This is done
|
|
329
|
+
* via the `minorVersion` counter of the CVRVersion object, which is used to account
|
|
330
|
+
* for both changes to the query set and changes to query transformations (which are
|
|
331
|
+
* effectively remove-old-query + add-new-query).
|
|
332
|
+
*
|
|
333
|
+
* Note that the transformed AST itself is **not** stored, as the result of the previous
|
|
334
|
+
* transformation is not useful in and of itself. If the current transformation results in
|
|
335
|
+
* a different hash than that of the transformation used for the last version of the CVR,
|
|
336
|
+
* it is simply handled by invalidating the existing rows, re-executed the query with
|
|
337
|
+
* the new transformation, and advancing the CVR's `minorVersion` and this query's
|
|
338
|
+
* `transformationVersion`.
|
|
339
|
+
*
|
|
340
|
+
* Note that the transformationHash is only stored when the query has reached the "gotten"
|
|
341
|
+
* state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
|
|
342
|
+
*/
|
|
343
|
+
transformationHash: v.Optional<string>;
|
|
344
|
+
/**
|
|
345
|
+
* The CVR version corresponding to the `transformationHash`. This essentially tracks when
|
|
346
|
+
* this version of the query was effectively added to the CVR (as opposed to the
|
|
347
|
+
* `patchVersion`, which is simply when the client was notified that its query was added
|
|
348
|
+
* to the gotten set). Catchup of clients from old CVR versions require executing all
|
|
349
|
+
* queries with a newer `transformationVersion`.
|
|
350
|
+
*/
|
|
351
|
+
transformationVersion: v.Optional<{
|
|
352
|
+
minorVersion?: number | undefined;
|
|
353
|
+
stateVersion: string;
|
|
354
|
+
}>;
|
|
355
|
+
}, "internal" | "patchVersion" | "desiredBy"> & {
|
|
356
|
+
internal: v.Optional<false>;
|
|
357
|
+
patchVersion: v.Optional<{
|
|
358
|
+
minorVersion?: number | undefined;
|
|
359
|
+
stateVersion: string;
|
|
360
|
+
}>;
|
|
361
|
+
desiredBy: v.Type<Record<string, {
|
|
362
|
+
minorVersion?: number | undefined;
|
|
363
|
+
stateVersion: string;
|
|
364
|
+
}>>;
|
|
365
|
+
}, undefined>, v.ObjectType<Omit<{
|
|
366
|
+
/** The client-specified ID used to identify this query. Typically a hash. */
|
|
367
|
+
id: v.Type<string>;
|
|
368
|
+
/** The original AST as supplied by the client. */
|
|
369
|
+
ast: v.ObjectType<{
|
|
370
|
+
schema: v.Optional<string>;
|
|
371
|
+
table: v.Type<string>;
|
|
372
|
+
alias: v.Optional<string>;
|
|
373
|
+
where: v.Optional<readonly {
|
|
374
|
+
type: "simple";
|
|
375
|
+
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
376
|
+
field: string;
|
|
377
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
378
|
+
type: "static";
|
|
379
|
+
anchor: "authData" | "preMutationRow";
|
|
380
|
+
field: string;
|
|
381
|
+
};
|
|
382
|
+
}[]>;
|
|
383
|
+
related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
|
|
384
|
+
limit: v.Optional<number>;
|
|
385
|
+
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
386
|
+
start: v.Optional<{
|
|
387
|
+
row: Record<string, string | number | boolean | null | undefined>;
|
|
388
|
+
exclusive: boolean;
|
|
389
|
+
}>;
|
|
390
|
+
}, undefined>;
|
|
391
|
+
/**
|
|
392
|
+
* The hash of the query after server-side transformations, which include:
|
|
393
|
+
*
|
|
394
|
+
* * Normalization (which may differ from what the client does)
|
|
395
|
+
* * Query "expansion" to include primary keys and query-execution-related columns
|
|
396
|
+
* * Authorization transforms
|
|
397
|
+
*
|
|
398
|
+
* Transformations depend on conditions that are independent of the db state version,
|
|
399
|
+
* such as server-side logic and authorization policies. As such, the version of a CVR
|
|
400
|
+
* version may need to be advanced independent of db state changes. This is done
|
|
401
|
+
* via the `minorVersion` counter of the CVRVersion object, which is used to account
|
|
402
|
+
* for both changes to the query set and changes to query transformations (which are
|
|
403
|
+
* effectively remove-old-query + add-new-query).
|
|
404
|
+
*
|
|
405
|
+
* Note that the transformed AST itself is **not** stored, as the result of the previous
|
|
406
|
+
* transformation is not useful in and of itself. If the current transformation results in
|
|
407
|
+
* a different hash than that of the transformation used for the last version of the CVR,
|
|
408
|
+
* it is simply handled by invalidating the existing rows, re-executed the query with
|
|
409
|
+
* the new transformation, and advancing the CVR's `minorVersion` and this query's
|
|
410
|
+
* `transformationVersion`.
|
|
411
|
+
*
|
|
412
|
+
* Note that the transformationHash is only stored when the query has reached the "gotten"
|
|
413
|
+
* state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
|
|
414
|
+
*/
|
|
415
|
+
transformationHash: v.Optional<string>;
|
|
416
|
+
/**
|
|
417
|
+
* The CVR version corresponding to the `transformationHash`. This essentially tracks when
|
|
418
|
+
* this version of the query was effectively added to the CVR (as opposed to the
|
|
419
|
+
* `patchVersion`, which is simply when the client was notified that its query was added
|
|
420
|
+
* to the gotten set). Catchup of clients from old CVR versions require executing all
|
|
421
|
+
* queries with a newer `transformationVersion`.
|
|
422
|
+
*/
|
|
423
|
+
transformationVersion: v.Optional<{
|
|
424
|
+
minorVersion?: number | undefined;
|
|
425
|
+
stateVersion: string;
|
|
426
|
+
}>;
|
|
427
|
+
}, "internal"> & {
|
|
428
|
+
internal: v.Type<true>;
|
|
429
|
+
}, undefined>]>;
|
|
430
|
+
export type QueryRecord = v.Infer<typeof queryRecordSchema>;
|
|
431
|
+
export declare const rowIDSchema: v.ObjectType<{
|
|
432
|
+
schema: v.Type<string>;
|
|
433
|
+
table: v.Type<string>;
|
|
434
|
+
rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
|
|
435
|
+
}, undefined>;
|
|
436
|
+
export declare const metaRecordSchema: v.UnionType<[v.ObjectType<{
|
|
437
|
+
/**
|
|
438
|
+
* The database `stateVersion` with which the rows in the CVR are consistent.
|
|
439
|
+
*/
|
|
440
|
+
stateVersion: v.Type<string>;
|
|
441
|
+
/**
|
|
442
|
+
* `minorVersion` is subversion of `stateVersion` that is initially absent for each
|
|
443
|
+
* `stateVersion`, and incremented for configuration changes that affect the contents
|
|
444
|
+
* of the CVR such as:
|
|
445
|
+
*
|
|
446
|
+
* * client set changes
|
|
447
|
+
* * query set changes
|
|
448
|
+
* * query transformation changes (which may happen for changes
|
|
449
|
+
* in server-side logic or authorization policies)
|
|
450
|
+
*
|
|
451
|
+
* Such configuration changes are always correlated with a change to one or more
|
|
452
|
+
* `/meta/...` records in the CVR, often (but not always) with corresponding
|
|
453
|
+
* patches in `/patches/meta/...`.
|
|
454
|
+
*
|
|
455
|
+
* When the `stateVersion` moves forward, the `minorVersion` is reset to absent.
|
|
456
|
+
* In this manner it behaves like the analogous concept in semantic versioning.
|
|
457
|
+
*/
|
|
458
|
+
minorVersion: v.Optional<number>;
|
|
459
|
+
}, undefined>, v.ObjectType<{
|
|
460
|
+
epochMillis: v.Type<number>;
|
|
461
|
+
}, undefined>, v.ObjectType<Omit<{
|
|
462
|
+
/**
|
|
463
|
+
* CVR records store the CVRVersion at which the record was last patched into
|
|
464
|
+
* the CVR, which corresponds with a patch row that is cleaned up when the
|
|
465
|
+
* record is changed (updated, deleted, and re-added in the case of rows).
|
|
466
|
+
*
|
|
467
|
+
* Tombstones are stored for row records but not for config records. This means
|
|
468
|
+
* that "orphaned" delete patches for config records may exist, and therefore
|
|
469
|
+
* scans of config patches must always run until the end of the list. On the
|
|
470
|
+
* contrary, for row patches, the row record tombstones allow cleanup of delete
|
|
471
|
+
* patches.
|
|
472
|
+
*/
|
|
473
|
+
patchVersion: v.ObjectType<{
|
|
474
|
+
/**
|
|
475
|
+
* The database `stateVersion` with which the rows in the CVR are consistent.
|
|
476
|
+
*/
|
|
477
|
+
stateVersion: v.Type<string>;
|
|
478
|
+
/**
|
|
479
|
+
* `minorVersion` is subversion of `stateVersion` that is initially absent for each
|
|
480
|
+
* `stateVersion`, and incremented for configuration changes that affect the contents
|
|
481
|
+
* of the CVR such as:
|
|
482
|
+
*
|
|
483
|
+
* * client set changes
|
|
484
|
+
* * query set changes
|
|
485
|
+
* * query transformation changes (which may happen for changes
|
|
486
|
+
* in server-side logic or authorization policies)
|
|
487
|
+
*
|
|
488
|
+
* Such configuration changes are always correlated with a change to one or more
|
|
489
|
+
* `/meta/...` records in the CVR, often (but not always) with corresponding
|
|
490
|
+
* patches in `/patches/meta/...`.
|
|
491
|
+
*
|
|
492
|
+
* When the `stateVersion` moves forward, the `minorVersion` is reset to absent.
|
|
493
|
+
* In this manner it behaves like the analogous concept in semantic versioning.
|
|
494
|
+
*/
|
|
495
|
+
minorVersion: v.Optional<number>;
|
|
496
|
+
}, undefined>;
|
|
497
|
+
}, "id" | "desiredQueryIDs"> & {
|
|
498
|
+
/** The client ID, of which there can be multiple for a client group view. */
|
|
499
|
+
id: v.Type<string>;
|
|
500
|
+
/** The client's desired query IDs. Patch information is stored in the QueryRecord. */
|
|
501
|
+
desiredQueryIDs: v.ArrayType<[], v.Type<string>>;
|
|
502
|
+
}, undefined>, v.UnionType<[v.ObjectType<Omit<{
|
|
503
|
+
/** The client-specified ID used to identify this query. Typically a hash. */
|
|
504
|
+
id: v.Type<string>;
|
|
505
|
+
/** The original AST as supplied by the client. */
|
|
506
|
+
ast: v.ObjectType<{
|
|
507
|
+
schema: v.Optional<string>;
|
|
508
|
+
table: v.Type<string>;
|
|
509
|
+
alias: v.Optional<string>;
|
|
510
|
+
where: v.Optional<readonly {
|
|
511
|
+
type: "simple";
|
|
512
|
+
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
513
|
+
field: string;
|
|
514
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
515
|
+
type: "static";
|
|
516
|
+
anchor: "authData" | "preMutationRow";
|
|
517
|
+
field: string;
|
|
518
|
+
};
|
|
519
|
+
}[]>;
|
|
520
|
+
related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
|
|
521
|
+
limit: v.Optional<number>;
|
|
522
|
+
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
523
|
+
start: v.Optional<{
|
|
524
|
+
row: Record<string, string | number | boolean | null | undefined>;
|
|
525
|
+
exclusive: boolean;
|
|
526
|
+
}>;
|
|
527
|
+
}, undefined>;
|
|
528
|
+
/**
|
|
529
|
+
* The hash of the query after server-side transformations, which include:
|
|
530
|
+
*
|
|
531
|
+
* * Normalization (which may differ from what the client does)
|
|
532
|
+
* * Query "expansion" to include primary keys and query-execution-related columns
|
|
533
|
+
* * Authorization transforms
|
|
534
|
+
*
|
|
535
|
+
* Transformations depend on conditions that are independent of the db state version,
|
|
536
|
+
* such as server-side logic and authorization policies. As such, the version of a CVR
|
|
537
|
+
* version may need to be advanced independent of db state changes. This is done
|
|
538
|
+
* via the `minorVersion` counter of the CVRVersion object, which is used to account
|
|
539
|
+
* for both changes to the query set and changes to query transformations (which are
|
|
540
|
+
* effectively remove-old-query + add-new-query).
|
|
541
|
+
*
|
|
542
|
+
* Note that the transformed AST itself is **not** stored, as the result of the previous
|
|
543
|
+
* transformation is not useful in and of itself. If the current transformation results in
|
|
544
|
+
* a different hash than that of the transformation used for the last version of the CVR,
|
|
545
|
+
* it is simply handled by invalidating the existing rows, re-executed the query with
|
|
546
|
+
* the new transformation, and advancing the CVR's `minorVersion` and this query's
|
|
547
|
+
* `transformationVersion`.
|
|
548
|
+
*
|
|
549
|
+
* Note that the transformationHash is only stored when the query has reached the "gotten"
|
|
550
|
+
* state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
|
|
551
|
+
*/
|
|
552
|
+
transformationHash: v.Optional<string>;
|
|
553
|
+
/**
|
|
554
|
+
* The CVR version corresponding to the `transformationHash`. This essentially tracks when
|
|
555
|
+
* this version of the query was effectively added to the CVR (as opposed to the
|
|
556
|
+
* `patchVersion`, which is simply when the client was notified that its query was added
|
|
557
|
+
* to the gotten set). Catchup of clients from old CVR versions require executing all
|
|
558
|
+
* queries with a newer `transformationVersion`.
|
|
559
|
+
*/
|
|
560
|
+
transformationVersion: v.Optional<{
|
|
561
|
+
minorVersion?: number | undefined;
|
|
562
|
+
stateVersion: string;
|
|
563
|
+
}>;
|
|
564
|
+
}, "internal" | "patchVersion" | "desiredBy"> & {
|
|
565
|
+
internal: v.Optional<false>;
|
|
566
|
+
patchVersion: v.Optional<{
|
|
567
|
+
minorVersion?: number | undefined;
|
|
568
|
+
stateVersion: string;
|
|
569
|
+
}>;
|
|
570
|
+
desiredBy: v.Type<Record<string, {
|
|
571
|
+
minorVersion?: number | undefined;
|
|
572
|
+
stateVersion: string;
|
|
573
|
+
}>>;
|
|
574
|
+
}, undefined>, v.ObjectType<Omit<{
|
|
575
|
+
/** The client-specified ID used to identify this query. Typically a hash. */
|
|
576
|
+
id: v.Type<string>;
|
|
577
|
+
/** The original AST as supplied by the client. */
|
|
578
|
+
ast: v.ObjectType<{
|
|
579
|
+
schema: v.Optional<string>;
|
|
580
|
+
table: v.Type<string>;
|
|
581
|
+
alias: v.Optional<string>;
|
|
582
|
+
where: v.Optional<readonly {
|
|
583
|
+
type: "simple";
|
|
584
|
+
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
585
|
+
field: string;
|
|
586
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
587
|
+
type: "static";
|
|
588
|
+
anchor: "authData" | "preMutationRow";
|
|
589
|
+
field: string;
|
|
590
|
+
};
|
|
591
|
+
}[]>;
|
|
592
|
+
related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
|
|
593
|
+
limit: v.Optional<number>;
|
|
594
|
+
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
595
|
+
start: v.Optional<{
|
|
596
|
+
row: Record<string, string | number | boolean | null | undefined>;
|
|
597
|
+
exclusive: boolean;
|
|
598
|
+
}>;
|
|
599
|
+
}, undefined>;
|
|
600
|
+
/**
|
|
601
|
+
* The hash of the query after server-side transformations, which include:
|
|
602
|
+
*
|
|
603
|
+
* * Normalization (which may differ from what the client does)
|
|
604
|
+
* * Query "expansion" to include primary keys and query-execution-related columns
|
|
605
|
+
* * Authorization transforms
|
|
606
|
+
*
|
|
607
|
+
* Transformations depend on conditions that are independent of the db state version,
|
|
608
|
+
* such as server-side logic and authorization policies. As such, the version of a CVR
|
|
609
|
+
* version may need to be advanced independent of db state changes. This is done
|
|
610
|
+
* via the `minorVersion` counter of the CVRVersion object, which is used to account
|
|
611
|
+
* for both changes to the query set and changes to query transformations (which are
|
|
612
|
+
* effectively remove-old-query + add-new-query).
|
|
613
|
+
*
|
|
614
|
+
* Note that the transformed AST itself is **not** stored, as the result of the previous
|
|
615
|
+
* transformation is not useful in and of itself. If the current transformation results in
|
|
616
|
+
* a different hash than that of the transformation used for the last version of the CVR,
|
|
617
|
+
* it is simply handled by invalidating the existing rows, re-executed the query with
|
|
618
|
+
* the new transformation, and advancing the CVR's `minorVersion` and this query's
|
|
619
|
+
* `transformationVersion`.
|
|
620
|
+
*
|
|
621
|
+
* Note that the transformationHash is only stored when the query has reached the "gotten"
|
|
622
|
+
* state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
|
|
623
|
+
*/
|
|
624
|
+
transformationHash: v.Optional<string>;
|
|
625
|
+
/**
|
|
626
|
+
* The CVR version corresponding to the `transformationHash`. This essentially tracks when
|
|
627
|
+
* this version of the query was effectively added to the CVR (as opposed to the
|
|
628
|
+
* `patchVersion`, which is simply when the client was notified that its query was added
|
|
629
|
+
* to the gotten set). Catchup of clients from old CVR versions require executing all
|
|
630
|
+
* queries with a newer `transformationVersion`.
|
|
631
|
+
*/
|
|
632
|
+
transformationVersion: v.Optional<{
|
|
633
|
+
minorVersion?: number | undefined;
|
|
634
|
+
stateVersion: string;
|
|
635
|
+
}>;
|
|
636
|
+
}, "internal"> & {
|
|
637
|
+
internal: v.Type<true>;
|
|
638
|
+
}, undefined>]>]>;
|
|
639
|
+
export type MetaRecord = v.Infer<typeof metaRecordSchema>;
|
|
640
|
+
export type RowID = v.Infer<typeof rowIDSchema>;
|
|
641
|
+
export declare const rowRecordSchema: v.ObjectType<Omit<{
|
|
642
|
+
/**
|
|
643
|
+
* CVR records store the CVRVersion at which the record was last patched into
|
|
644
|
+
* the CVR, which corresponds with a patch row that is cleaned up when the
|
|
645
|
+
* record is changed (updated, deleted, and re-added in the case of rows).
|
|
646
|
+
*
|
|
647
|
+
* Tombstones are stored for row records but not for config records. This means
|
|
648
|
+
* that "orphaned" delete patches for config records may exist, and therefore
|
|
649
|
+
* scans of config patches must always run until the end of the list. On the
|
|
650
|
+
* contrary, for row patches, the row record tombstones allow cleanup of delete
|
|
651
|
+
* patches.
|
|
652
|
+
*/
|
|
653
|
+
patchVersion: v.ObjectType<{
|
|
654
|
+
/**
|
|
655
|
+
* The database `stateVersion` with which the rows in the CVR are consistent.
|
|
656
|
+
*/
|
|
657
|
+
stateVersion: v.Type<string>;
|
|
658
|
+
/**
|
|
659
|
+
* `minorVersion` is subversion of `stateVersion` that is initially absent for each
|
|
660
|
+
* `stateVersion`, and incremented for configuration changes that affect the contents
|
|
661
|
+
* of the CVR such as:
|
|
662
|
+
*
|
|
663
|
+
* * client set changes
|
|
664
|
+
* * query set changes
|
|
665
|
+
* * query transformation changes (which may happen for changes
|
|
666
|
+
* in server-side logic or authorization policies)
|
|
667
|
+
*
|
|
668
|
+
* Such configuration changes are always correlated with a change to one or more
|
|
669
|
+
* `/meta/...` records in the CVR, often (but not always) with corresponding
|
|
670
|
+
* patches in `/patches/meta/...`.
|
|
671
|
+
*
|
|
672
|
+
* When the `stateVersion` moves forward, the `minorVersion` is reset to absent.
|
|
673
|
+
* In this manner it behaves like the analogous concept in semantic versioning.
|
|
674
|
+
*/
|
|
675
|
+
minorVersion: v.Optional<number>;
|
|
676
|
+
}, undefined>;
|
|
677
|
+
}, "id" | "rowVersion" | "refCounts"> & {
|
|
678
|
+
id: v.ObjectType<{
|
|
679
|
+
schema: v.Type<string>;
|
|
680
|
+
table: v.Type<string>;
|
|
681
|
+
rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
|
|
682
|
+
}, undefined>;
|
|
683
|
+
rowVersion: v.Type<string>;
|
|
684
|
+
refCounts: v.Type<Record<string, number> | null>;
|
|
685
|
+
}, undefined>;
|
|
686
|
+
export type RowRecord = v.Infer<typeof rowRecordSchema>;
|
|
687
|
+
export declare const patchSchema: v.ObjectType<{
|
|
688
|
+
type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
|
|
689
|
+
op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
|
|
690
|
+
}, undefined>;
|
|
691
|
+
export declare const putRowPatchSchema: v.ObjectType<Omit<{
|
|
692
|
+
type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
|
|
693
|
+
op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
|
|
694
|
+
}, "type" | "op" | "id" | "rowVersion"> & {
|
|
695
|
+
type: v.Type<"row">;
|
|
696
|
+
op: v.Type<"put">;
|
|
697
|
+
id: v.ObjectType<{
|
|
698
|
+
schema: v.Type<string>;
|
|
699
|
+
table: v.Type<string>;
|
|
700
|
+
rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
|
|
701
|
+
}, undefined>;
|
|
702
|
+
rowVersion: v.Type<string>;
|
|
703
|
+
}, undefined>;
|
|
704
|
+
export type PutRowPatch = v.Infer<typeof putRowPatchSchema>;
|
|
705
|
+
export declare const delRowPatchSchema: v.ObjectType<Omit<{
|
|
706
|
+
type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
|
|
707
|
+
op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
|
|
708
|
+
}, "type" | "op" | "id"> & {
|
|
709
|
+
type: v.Type<"row">;
|
|
710
|
+
op: v.Type<"del">;
|
|
711
|
+
id: v.ObjectType<{
|
|
712
|
+
schema: v.Type<string>;
|
|
713
|
+
table: v.Type<string>;
|
|
714
|
+
rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
|
|
715
|
+
}, undefined>;
|
|
716
|
+
}, undefined>;
|
|
717
|
+
export type DelRowPatch = v.Infer<typeof delRowPatchSchema>;
|
|
718
|
+
export declare const rowPatchSchema: v.UnionType<[v.ObjectType<Omit<{
|
|
719
|
+
type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
|
|
720
|
+
op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
|
|
721
|
+
}, "type" | "op" | "id" | "rowVersion"> & {
|
|
722
|
+
type: v.Type<"row">;
|
|
723
|
+
op: v.Type<"put">;
|
|
724
|
+
id: v.ObjectType<{
|
|
725
|
+
schema: v.Type<string>;
|
|
726
|
+
table: v.Type<string>;
|
|
727
|
+
rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
|
|
728
|
+
}, undefined>;
|
|
729
|
+
rowVersion: v.Type<string>;
|
|
730
|
+
}, undefined>, v.ObjectType<Omit<{
|
|
731
|
+
type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
|
|
732
|
+
op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
|
|
733
|
+
}, "type" | "op" | "id"> & {
|
|
734
|
+
type: v.Type<"row">;
|
|
735
|
+
op: v.Type<"del">;
|
|
736
|
+
id: v.ObjectType<{
|
|
737
|
+
schema: v.Type<string>;
|
|
738
|
+
table: v.Type<string>;
|
|
739
|
+
rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
|
|
740
|
+
}, undefined>;
|
|
741
|
+
}, undefined>]>;
|
|
742
|
+
export type RowPatch = v.Infer<typeof rowPatchSchema>;
|
|
743
|
+
export declare const queryPatchSchema: v.ObjectType<Omit<{
|
|
744
|
+
type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
|
|
745
|
+
op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
|
|
746
|
+
}, "type" | "clientID" | "id"> & {
|
|
747
|
+
type: v.Type<"query">;
|
|
748
|
+
id: v.Type<string>;
|
|
749
|
+
clientID: v.Optional<string>;
|
|
750
|
+
}, undefined>;
|
|
751
|
+
export type QueryPatch = v.Infer<typeof queryPatchSchema>;
|
|
752
|
+
export type PutQueryPatch = QueryPatch & {
|
|
753
|
+
op: 'put';
|
|
754
|
+
};
|
|
755
|
+
export type DelQueryPatch = QueryPatch & {
|
|
756
|
+
op: 'del';
|
|
757
|
+
};
|
|
758
|
+
export declare const clientPatchSchema: v.ObjectType<Omit<{
|
|
759
|
+
type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
|
|
760
|
+
op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
|
|
761
|
+
}, "type" | "id"> & {
|
|
762
|
+
type: v.Type<"client">;
|
|
763
|
+
id: v.Type<string>;
|
|
764
|
+
}, undefined>;
|
|
765
|
+
export type ClientPatch = v.Infer<typeof clientPatchSchema>;
|
|
766
|
+
export declare const metadataPatchSchema: v.UnionType<[v.ObjectType<Omit<{
|
|
767
|
+
type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
|
|
768
|
+
op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
|
|
769
|
+
}, "type" | "id"> & {
|
|
770
|
+
type: v.Type<"client">;
|
|
771
|
+
id: v.Type<string>;
|
|
772
|
+
}, undefined>, v.ObjectType<Omit<{
|
|
773
|
+
type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
|
|
774
|
+
op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
|
|
775
|
+
}, "type" | "clientID" | "id"> & {
|
|
776
|
+
type: v.Type<"query">;
|
|
777
|
+
id: v.Type<string>;
|
|
778
|
+
clientID: v.Optional<string>;
|
|
779
|
+
}, undefined>]>;
|
|
780
|
+
export type MetadataPatch = v.Infer<typeof metadataPatchSchema>;
|
|
781
|
+
export declare function versionString(v: CVRVersion): string;
|
|
782
|
+
export declare function versionFromString(str: string): CVRVersion;
|
|
783
|
+
//# sourceMappingURL=types.d.ts.map
|