@rocicorp/zero 1.12.0-canary.6 → 1.12.0-canary.7
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/out/zero/package.js +10 -10
- package/out/zero/package.js.map +1 -1
- package/out/zero-cache/src/auth/write-authorizer.js +9 -2
- package/out/zero-cache/src/auth/write-authorizer.js.map +1 -1
- package/out/zero-cache/src/server/change-streamer.js +1 -0
- package/out/zero-cache/src/server/change-streamer.js.map +1 -1
- package/out/zero-cache/src/services/change-source/common/replica-restore.js.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/change-source-init.js +17 -9
- package/out/zero-cache/src/services/change-source/pg/change-source-init.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/server-start-metrics.js +1 -1
- package/out/zero-cache/src/services/change-streamer/server-start-metrics.js.map +1 -1
- package/out/zero-cache/src/services/mutagen/mutagen.js +1 -2
- package/out/zero-cache/src/services/mutagen/mutagen.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/view-syncer.js +19 -2
- package/out/zero-cache/src/services/view-syncer/view-syncer.js.map +1 -1
- package/out/zero-client/src/client/version.js +1 -1
- package/out/zero-protocol/src/inspect-down.d.ts +81 -81
- package/out/zero-protocol/src/up.d.ts +60 -60
- package/package.json +10 -10
- package/out/shared/src/cache.d.ts +0 -22
- package/out/shared/src/cache.d.ts.map +0 -1
- package/out/shared/src/custom-key-map.d.ts +0 -26
- package/out/shared/src/custom-key-map.d.ts.map +0 -1
- package/out/shared/src/custom-key-set.d.ts +0 -25
- package/out/shared/src/custom-key-set.d.ts.map +0 -1
- package/out/shared/src/logging-test-utils.d.ts +0 -12
- package/out/shared/src/logging-test-utils.d.ts.map +0 -1
- package/out/shared/src/queue.d.ts +0 -53
- package/out/shared/src/queue.d.ts.map +0 -1
- package/out/shared/src/ring-buffer.d.ts +0 -42
- package/out/shared/src/ring-buffer.d.ts.map +0 -1
- package/out/shared/src/sorted-entries.d.ts +0 -2
- package/out/shared/src/sorted-entries.d.ts.map +0 -1
- package/out/zero/src/server/change-streamer.d.ts +0 -2
- package/out/zero/src/server/change-streamer.d.ts.map +0 -1
- package/out/zero/src/server/main.d.ts +0 -2
- package/out/zero/src/server/main.d.ts.map +0 -1
- package/out/zero/src/server/reaper.d.ts +0 -2
- package/out/zero/src/server/reaper.d.ts.map +0 -1
- package/out/zero/src/server/replicator.d.ts +0 -2
- package/out/zero/src/server/replicator.d.ts.map +0 -1
- package/out/zero/src/server/syncer.d.ts +0 -2
- package/out/zero/src/server/syncer.d.ts.map +0 -1
- package/out/zero-cache/src/auth/jwt.d.ts +0 -12
- package/out/zero-cache/src/auth/jwt.d.ts.map +0 -1
- package/out/zero-cache/src/auth/load-permissions.d.ts +0 -17
- package/out/zero-cache/src/auth/load-permissions.d.ts.map +0 -1
- package/out/zero-cache/src/auth/write-authorizer.d.ts +0 -28
- package/out/zero-cache/src/auth/write-authorizer.d.ts.map +0 -1
- package/out/zero-cache/src/config/server-context.d.ts +0 -16
- package/out/zero-cache/src/config/server-context.d.ts.map +0 -1
- package/out/zero-cache/src/custom/fetch.d.ts +0 -38
- package/out/zero-cache/src/custom/fetch.d.ts.map +0 -1
- package/out/zero-cache/src/custom/metrics.d.ts +0 -31
- package/out/zero-cache/src/custom/metrics.d.ts.map +0 -1
- package/out/zero-cache/src/custom-queries/transform-query.d.ts +0 -68
- package/out/zero-cache/src/custom-queries/transform-query.d.ts.map +0 -1
- package/out/zero-cache/src/db/create.d.ts +0 -12
- package/out/zero-cache/src/db/create.d.ts.map +0 -1
- package/out/zero-cache/src/db/delete-lite-db.d.ts +0 -2
- package/out/zero-cache/src/db/delete-lite-db.d.ts.map +0 -1
- package/out/zero-cache/src/db/index-predicate.d.ts +0 -4
- package/out/zero-cache/src/db/index-predicate.d.ts.map +0 -1
- package/out/zero-cache/src/db/migration-lite.d.ts +0 -78
- package/out/zero-cache/src/db/migration-lite.d.ts.map +0 -1
- package/out/zero-cache/src/db/migration.d.ts +0 -80
- package/out/zero-cache/src/db/migration.d.ts.map +0 -1
- package/out/zero-cache/src/db/pg-copy-binary.d.ts +0 -101
- package/out/zero-cache/src/db/pg-copy-binary.d.ts.map +0 -1
- package/out/zero-cache/src/db/pg-copy.d.ts +0 -30
- package/out/zero-cache/src/db/pg-copy.d.ts.map +0 -1
- package/out/zero-cache/src/db/pg-type-parser.d.ts +0 -15
- package/out/zero-cache/src/db/pg-type-parser.d.ts.map +0 -1
- package/out/zero-cache/src/db/transaction-pool.d.ts +0 -205
- package/out/zero-cache/src/db/transaction-pool.d.ts.map +0 -1
- package/out/zero-cache/src/db/warmup.d.ts +0 -4
- package/out/zero-cache/src/db/warmup.d.ts.map +0 -1
- package/out/zero-cache/src/observability/events.d.ts +0 -15
- package/out/zero-cache/src/observability/events.d.ts.map +0 -1
- package/out/zero-cache/src/observability/log-throttle.d.ts +0 -44
- package/out/zero-cache/src/observability/log-throttle.d.ts.map +0 -1
- package/out/zero-cache/src/server/anonymous-otel-start.d.ts +0 -21
- package/out/zero-cache/src/server/anonymous-otel-start.d.ts.map +0 -1
- package/out/zero-cache/src/server/change-streamer.d.ts +0 -3
- package/out/zero-cache/src/server/change-streamer.d.ts.map +0 -1
- package/out/zero-cache/src/server/inspector-delegate.d.ts +0 -71
- package/out/zero-cache/src/server/inspector-delegate.d.ts.map +0 -1
- package/out/zero-cache/src/server/main.d.ts +0 -3
- package/out/zero-cache/src/server/main.d.ts.map +0 -1
- package/out/zero-cache/src/server/otel-diag-logger.d.ts +0 -16
- package/out/zero-cache/src/server/otel-diag-logger.d.ts.map +0 -1
- package/out/zero-cache/src/server/otel-start.d.ts +0 -3
- package/out/zero-cache/src/server/otel-start.d.ts.map +0 -1
- package/out/zero-cache/src/server/priority-op.d.ts +0 -8
- package/out/zero-cache/src/server/priority-op.d.ts.map +0 -1
- package/out/zero-cache/src/server/reaper.d.ts +0 -3
- package/out/zero-cache/src/server/reaper.d.ts.map +0 -1
- package/out/zero-cache/src/server/replicator.d.ts +0 -10
- package/out/zero-cache/src/server/replicator.d.ts.map +0 -1
- package/out/zero-cache/src/server/slot-keeper.d.ts +0 -26
- package/out/zero-cache/src/server/slot-keeper.d.ts.map +0 -1
- package/out/zero-cache/src/server/syncer-assigner.d.ts +0 -14
- package/out/zero-cache/src/server/syncer-assigner.d.ts.map +0 -1
- package/out/zero-cache/src/server/syncer.d.ts +0 -3
- package/out/zero-cache/src/server/syncer.d.ts.map +0 -1
- package/out/zero-cache/src/server/worker-dispatcher.d.ts +0 -17
- package/out/zero-cache/src/server/worker-dispatcher.d.ts.map +0 -1
- package/out/zero-cache/src/services/analyze.d.ts +0 -9
- package/out/zero-cache/src/services/analyze.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/change-source.d.ts +0 -39
- package/out/zero-cache/src/services/change-source/change-source.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/common/backfill-manager.d.ts +0 -57
- package/out/zero-cache/src/services/change-source/common/backfill-manager.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/common/change-stream-multiplexer.d.ts +0 -55
- package/out/zero-cache/src/services/change-source/common/change-stream-multiplexer.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/common/init-cleanup.d.ts +0 -24
- package/out/zero-cache/src/services/change-source/common/init-cleanup.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/common/replica-restore.d.ts +0 -140
- package/out/zero-cache/src/services/change-source/common/replica-restore.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/common/replica-schema.d.ts +0 -14
- package/out/zero-cache/src/services/change-source/common/replica-schema.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/custom/change-source.d.ts +0 -25
- package/out/zero-cache/src/services/change-source/custom/change-source.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/backfill-metadata.d.ts +0 -14
- package/out/zero-cache/src/services/change-source/pg/backfill-metadata.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/backfill-stream.d.ts +0 -36
- package/out/zero-cache/src/services/change-source/pg/backfill-stream.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/change-source-init.d.ts +0 -72
- package/out/zero-cache/src/services/change-source/pg/change-source-init.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/change-source.d.ts +0 -127
- package/out/zero-cache/src/services/change-source/pg/change-source.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/fork-request.d.ts +0 -57
- package/out/zero-cache/src/services/change-source/pg/fork-request.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/initial-sync.d.ts +0 -155
- package/out/zero-cache/src/services/change-source/pg/initial-sync.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/logical-replication/binary-reader.d.ts +0 -17
- package/out/zero-cache/src/services/change-source/pg/logical-replication/binary-reader.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/logical-replication/pgoutput-parser.d.ts +0 -28
- package/out/zero-cache/src/services/change-source/pg/logical-replication/pgoutput-parser.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/logical-replication/pgoutput.types.d.ts +0 -76
- package/out/zero-cache/src/services/change-source/pg/logical-replication/pgoutput.types.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/logical-replication/stream.d.ts +0 -169
- package/out/zero-cache/src/services/change-source/pg/logical-replication/stream.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/replication-slot-cleanup-monitor.d.ts +0 -16
- package/out/zero-cache/src/services/change-source/pg/replication-slot-cleanup-monitor.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/replication-slot-health.d.ts +0 -15
- package/out/zero-cache/src/services/change-source/pg/replication-slot-health.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/replication-slots.d.ts +0 -127
- package/out/zero-cache/src/services/change-source/pg/replication-slots.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/schema/init.d.ts +0 -9
- package/out/zero-cache/src/services/change-source/pg/schema/init.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/protocol/backfill-progress.d.ts +0 -68
- package/out/zero-cache/src/services/change-source/protocol/backfill-progress.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/backfill-state-tracker.d.ts +0 -72
- package/out/zero-cache/src/services/change-streamer/backfill-state-tracker.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/backfill-state.d.ts +0 -50
- package/out/zero-cache/src/services/change-streamer/backfill-state.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/backup-cleanup-monitor-factory.d.ts +0 -12
- package/out/zero-cache/src/services/change-streamer/backup-cleanup-monitor-factory.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/backup-monitor.d.ts +0 -57
- package/out/zero-cache/src/services/change-streamer/backup-monitor.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/broadcast.d.ts +0 -98
- package/out/zero-cache/src/services/change-streamer/broadcast.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/change-log-codec.d.ts +0 -34
- package/out/zero-cache/src/services/change-streamer/change-log-codec.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/change-log-compare-digest.d.ts +0 -34
- package/out/zero-cache/src/services/change-streamer/change-log-compare-digest.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/change-log-initializer.d.ts +0 -158
- package/out/zero-cache/src/services/change-streamer/change-log-initializer.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/change-log-transaction-hash.d.ts +0 -19
- package/out/zero-cache/src/services/change-streamer/change-log-transaction-hash.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts +0 -78
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.d.ts +0 -152
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts +0 -575
- package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/drain-tracker.d.ts +0 -24
- package/out/zero-cache/src/services/change-streamer/drain-tracker.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/error-type-enum.d.ts +0 -15
- package/out/zero-cache/src/services/change-streamer/error-type-enum.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/forwarder.d.ts +0 -49
- package/out/zero-cache/src/services/change-streamer/forwarder.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/litestream-sync-requester.d.ts +0 -80
- package/out/zero-cache/src/services/change-streamer/litestream-sync-requester.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/litestream3-prometheus-poller.d.ts +0 -88
- package/out/zero-cache/src/services/change-streamer/litestream3-prometheus-poller.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/replica-poller.d.ts +0 -15
- package/out/zero-cache/src/services/change-streamer/replica-poller.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/restore-admission.d.ts +0 -243
- package/out/zero-cache/src/services/change-streamer/restore-admission.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/schema/init.d.ts +0 -6
- package/out/zero-cache/src/services/change-streamer/schema/init.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/schema/tables.d.ts +0 -152
- package/out/zero-cache/src/services/change-streamer/schema/tables.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/server-start-metrics.d.ts +0 -33
- package/out/zero-cache/src/services/change-streamer/server-start-metrics.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/shard-sampling.d.ts +0 -11
- package/out/zero-cache/src/services/change-streamer/shard-sampling.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/snapshot-message.d.ts +0 -92
- package/out/zero-cache/src/services/change-streamer/snapshot-message.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/snapshot-reservations.d.ts +0 -36
- package/out/zero-cache/src/services/change-streamer/snapshot-reservations.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/snapshot.d.ts +0 -22
- package/out/zero-cache/src/services/change-streamer/snapshot.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-catchup.d.ts +0 -99
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-catchup.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-comparator.d.ts +0 -83
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-comparator.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-purge-scheduler.d.ts +0 -121
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-purge-scheduler.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-read-router.d.ts +0 -73
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-read-router.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-reader.d.ts +0 -62
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-reader.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-writer.d.ts +0 -114
- package/out/zero-cache/src/services/change-streamer/sqlite-change-log-writer.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/storer.d.ts +0 -276
- package/out/zero-cache/src/services/change-streamer/storer.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/subscribe.d.ts +0 -485
- package/out/zero-cache/src/services/change-streamer/subscribe.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/subscriber.d.ts +0 -205
- package/out/zero-cache/src/services/change-streamer/subscriber.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/upstream-acker.d.ts +0 -52
- package/out/zero-cache/src/services/change-streamer/upstream-acker.d.ts.map +0 -1
- package/out/zero-cache/src/services/limiter/sliding-window-limiter.d.ts +0 -57
- package/out/zero-cache/src/services/limiter/sliding-window-limiter.d.ts.map +0 -1
- package/out/zero-cache/src/services/litestream/commands.d.ts +0 -77
- package/out/zero-cache/src/services/litestream/commands.d.ts.map +0 -1
- package/out/zero-cache/src/services/litestream/litestream-controller.d.ts +0 -78
- package/out/zero-cache/src/services/litestream/litestream-controller.d.ts.map +0 -1
- package/out/zero-cache/src/services/litestream/metrics.d.ts +0 -31
- package/out/zero-cache/src/services/litestream/metrics.d.ts.map +0 -1
- package/out/zero-cache/src/services/litestream/restore-progress.d.ts +0 -24
- package/out/zero-cache/src/services/litestream/restore-progress.d.ts.map +0 -1
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts +0 -40
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts.map +0 -1
- package/out/zero-cache/src/services/mutagen/pusher.d.ts +0 -63
- package/out/zero-cache/src/services/mutagen/pusher.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/change-log-db.d.ts +0 -368
- package/out/zero-cache/src/services/replicator/change-log-db.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/change-log-stream-writer.d.ts +0 -56
- package/out/zero-cache/src/services/replicator/change-log-stream-writer.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/change-processor.d.ts +0 -37
- package/out/zero-cache/src/services/replicator/change-processor.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/drain-handler.d.ts +0 -82
- package/out/zero-cache/src/services/replicator/drain-handler.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/incremental-sync.d.ts +0 -25
- package/out/zero-cache/src/services/replicator/incremental-sync.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/notifier.d.ts +0 -9
- package/out/zero-cache/src/services/replicator/notifier.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/replication-status.d.ts +0 -71
- package/out/zero-cache/src/services/replicator/replication-status.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/replicator.d.ts +0 -86
- package/out/zero-cache/src/services/replicator/replicator.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/reporter/recorder.d.ts +0 -55
- package/out/zero-cache/src/services/replicator/reporter/recorder.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/sqlite-change-log-observability.d.ts +0 -132
- package/out/zero-cache/src/services/replicator/sqlite-change-log-observability.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/sqlite-change-log-purger.d.ts +0 -120
- package/out/zero-cache/src/services/replicator/sqlite-change-log-purger.d.ts.map +0 -1
- package/out/zero-cache/src/services/replicator/write-worker-client.d.ts +0 -111
- package/out/zero-cache/src/services/replicator/write-worker-client.d.ts.map +0 -1
- package/out/zero-cache/src/services/run-ast.d.ts +0 -39
- package/out/zero-cache/src/services/run-ast.d.ts.map +0 -1
- package/out/zero-cache/src/services/runner.d.ts +0 -19
- package/out/zero-cache/src/services/runner.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/active-users-gauge.d.ts +0 -17
- package/out/zero-cache/src/services/view-syncer/active-users-gauge.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/advancement-metrics.d.ts +0 -26
- package/out/zero-cache/src/services/view-syncer/advancement-metrics.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/batch-pacer.d.ts +0 -79
- package/out/zero-cache/src/services/view-syncer/batch-pacer.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/client-handler.d.ts +0 -97
- package/out/zero-cache/src/services/view-syncer/client-handler.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/client-schema.d.ts +0 -18
- package/out/zero-cache/src/services/view-syncer/client-schema.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/connection-context-manager.d.ts +0 -184
- package/out/zero-cache/src/services/view-syncer/connection-context-manager.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/cvr-purger.d.ts +0 -22
- package/out/zero-cache/src/services/view-syncer/cvr-purger.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts +0 -128
- package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/cvr.d.ts +0 -294
- package/out/zero-cache/src/services/view-syncer/cvr.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/deferred-writes-budget.d.ts +0 -81
- package/out/zero-cache/src/services/view-syncer/deferred-writes-budget.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/drain-coordinator.d.ts +0 -45
- package/out/zero-cache/src/services/view-syncer/drain-coordinator.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/e2e-serving-lag.d.ts +0 -53
- package/out/zero-cache/src/services/view-syncer/e2e-serving-lag.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/hydration-budget.d.ts +0 -33
- package/out/zero-cache/src/services/view-syncer/hydration-budget.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/hydration-circuit-breaker.d.ts +0 -51
- package/out/zero-cache/src/services/view-syncer/hydration-circuit-breaker.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/inspect-handler.d.ts +0 -34
- package/out/zero-cache/src/services/view-syncer/inspect-handler.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.d.ts +0 -296
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/plan-warnings.d.ts +0 -7
- package/out/zero-cache/src/services/view-syncer/plan-warnings.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/push-cost.d.ts +0 -132
- package/out/zero-cache/src/services/view-syncer/push-cost.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/push-cutoff.d.ts +0 -55
- package/out/zero-cache/src/services/view-syncer/push-cutoff.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/query-covering.d.ts +0 -28
- package/out/zero-cache/src/services/view-syncer/query-covering.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/query-shape.d.ts +0 -25
- package/out/zero-cache/src/services/view-syncer/query-shape.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/query-stats.d.ts +0 -89
- package/out/zero-cache/src/services/view-syncer/query-stats.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/row-record-cache.d.ts +0 -90
- package/out/zero-cache/src/services/view-syncer/row-record-cache.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/row-set-signature.d.ts +0 -17
- package/out/zero-cache/src/services/view-syncer/row-set-signature.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/schema/cvr.d.ts +0 -86
- package/out/zero-cache/src/services/view-syncer/schema/cvr.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/schema/init.d.ts +0 -5
- package/out/zero-cache/src/services/view-syncer/schema/init.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts +0 -563
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/snapshot-row-cache.d.ts +0 -95
- package/out/zero-cache/src/services/view-syncer/snapshot-row-cache.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/snapshotter.d.ts +0 -420
- package/out/zero-cache/src/services/view-syncer/snapshotter.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/tracer.d.ts +0 -2
- package/out/zero-cache/src/services/view-syncer/tracer.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/ttl-clock.d.ts +0 -10
- package/out/zero-cache/src/services/view-syncer/ttl-clock.d.ts.map +0 -1
- package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts +0 -133
- package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts.map +0 -1
- package/out/zero-cache/src/types/downstream.d.ts +0 -11
- package/out/zero-cache/src/types/downstream.d.ts.map +0 -1
- package/out/zero-cache/src/types/error-with-level.d.ts +0 -9
- package/out/zero-cache/src/types/error-with-level.d.ts.map +0 -1
- package/out/zero-cache/src/types/pg-patch.d.ts +0 -21
- package/out/zero-cache/src/types/pg-patch.d.ts.map +0 -1
- package/out/zero-cache/src/types/pg-versions.d.ts +0 -3
- package/out/zero-cache/src/types/pg-versions.d.ts.map +0 -1
- package/out/zero-cache/src/types/poke-chunk.d.ts +0 -18
- package/out/zero-cache/src/types/poke-chunk.d.ts.map +0 -1
- package/out/zero-cache/src/types/streams.d.ts +0 -115
- package/out/zero-cache/src/types/streams.d.ts.map +0 -1
- package/out/zero-cache/src/types/subscription.d.ts +0 -197
- package/out/zero-cache/src/types/subscription.d.ts.map +0 -1
- package/out/zero-cache/src/workers/connect-params.d.ts +0 -28
- package/out/zero-cache/src/workers/connect-params.d.ts.map +0 -1
- package/out/zero-cache/src/workers/connection.d.ts +0 -77
- package/out/zero-cache/src/workers/connection.d.ts.map +0 -1
- package/out/zero-cache/src/workers/replicator.d.ts +0 -57
- package/out/zero-cache/src/workers/replicator.d.ts.map +0 -1
- package/out/zero-cache/src/workers/syncer-ws-message-handler.d.ts +0 -14
- package/out/zero-cache/src/workers/syncer-ws-message-handler.d.ts.map +0 -1
- package/out/zero-cache/src/workers/syncer.d.ts +0 -67
- package/out/zero-cache/src/workers/syncer.d.ts.map +0 -1
- package/out/zero-events/src/index.d.ts +0 -27
- package/out/zero-events/src/index.d.ts.map +0 -1
- package/out/zero-events/src/json.d.ts +0 -20
- package/out/zero-events/src/json.d.ts.map +0 -1
- package/out/zero-events/src/status.d.ts +0 -144
- package/out/zero-events/src/status.d.ts.map +0 -1
- package/out/zqlite/src/database-storage.d.ts +0 -43
- package/out/zqlite/src/database-storage.d.ts.map +0 -1
- package/out/zqlite/src/explain-queries.d.ts +0 -4
- package/out/zqlite/src/explain-queries.d.ts.map +0 -1
- package/out/zqlite/src/internal/sql-inline.d.ts +0 -13
- package/out/zqlite/src/internal/sql-inline.d.ts.map +0 -1
- package/out/zqlite/src/resolve-scalar-subqueries.d.ts +0 -72
- package/out/zqlite/src/resolve-scalar-subqueries.d.ts.map +0 -1
- package/out/zqlite/src/sqlite-cost-model.d.ts +0 -17
- package/out/zqlite/src/sqlite-cost-model.d.ts.map +0 -1
- package/out/zqlite/src/sqlite-stat-fanout.d.ts +0 -121
- package/out/zqlite/src/sqlite-stat-fanout.d.ts.map +0 -1
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
import type { LogContext } from '@rocicorp/logger';
|
|
2
|
-
import { type JSONObject } from '../../../../shared/src/bigint-json.ts';
|
|
3
|
-
import { TransactionPool } from '../../db/transaction-pool.ts';
|
|
4
|
-
import { type PostgresDB } from '../../types/pg.ts';
|
|
5
|
-
import { type ShardID } from '../../types/shards.ts';
|
|
6
|
-
import { type BackfillRequest } from '../change-source/protocol/current.ts';
|
|
7
|
-
import { type ChangeStreamData, type Commit } from '../change-source/protocol/current/downstream.ts';
|
|
8
|
-
import type { UpstreamStatusMessage } from '../change-source/protocol/current/status.ts';
|
|
9
|
-
import { type CookieSet } from '../replicator/change-log-cookies.ts';
|
|
10
|
-
import type { ReplicatorMode } from '../replicator/replicator.ts';
|
|
11
|
-
import type { Service } from '../service.ts';
|
|
12
|
-
import { type ChangeLogEntry, type SerializedChangeStreamData } from './change-log-codec.ts';
|
|
13
|
-
import { type ReplicaSubscriptionState, type ChangeLogReinitialization } from './schema/tables.ts';
|
|
14
|
-
import type { Subscriber } from './subscriber.ts';
|
|
15
|
-
/**
|
|
16
|
-
* Factory for creating dynamic connection pools used by the Storer to
|
|
17
|
-
* isolate concurrent transactions into separate pg clients.
|
|
18
|
-
*/
|
|
19
|
-
export type PostgresDBProvider = (applicationName: string, maxConns: number) => PostgresDB;
|
|
20
|
-
export type OwnershipTakeover = {
|
|
21
|
-
/**
|
|
22
|
-
* The lock that prevents the previous owner from purging the change log
|
|
23
|
-
* (from which this change-streamer's replica was restored), released once
|
|
24
|
-
* ownership is assumed.
|
|
25
|
-
*/
|
|
26
|
-
purgeLock: PurgeLock | null;
|
|
27
|
-
/**
|
|
28
|
-
* Requests a restart of the change stream (at a transaction boundary),
|
|
29
|
-
* which is used to start pending backfills once ownership is assumed.
|
|
30
|
-
*/
|
|
31
|
-
requestRestart: (reason: string) => void;
|
|
32
|
-
/**
|
|
33
|
-
* Whether to throw an AutoResetSignal if the change db requires a reset.
|
|
34
|
-
*/
|
|
35
|
-
autoReset: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the change log was behind the replication slot, in which case it
|
|
38
|
-
* is re-initialized from the replica (see `reinitializeFromReplica()`), and
|
|
39
|
-
* can thus be reset for a replica at any watermark.
|
|
40
|
-
*/
|
|
41
|
-
pgChangeLogBehindSlot: boolean;
|
|
42
|
-
};
|
|
43
|
-
export type TuningOptions = {
|
|
44
|
-
backPressureLimitHeapProportion: number;
|
|
45
|
-
statementTimeoutMs: number;
|
|
46
|
-
changeLogBatchSize: number;
|
|
47
|
-
drainTimeoutMs?: number | undefined;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Handles the storage of changes and the catchup of subscribers
|
|
51
|
-
* that are behind.
|
|
52
|
-
*
|
|
53
|
-
* In the context of catchup and cleanup, it is the responsibility of the
|
|
54
|
-
* Storer to decide whether a client can be caught up, or whether the
|
|
55
|
-
* changes needed to catch a client up have been purged.
|
|
56
|
-
*
|
|
57
|
-
* **Maintained invariant**: The Change DB is only empty for a
|
|
58
|
-
* completely new replica (i.e. initial-sync with no changes from the
|
|
59
|
-
* replication stream).
|
|
60
|
-
* * In this case, all new subscribers are expected start from the
|
|
61
|
-
* `replicaVersion`, which is the version at which initial sync
|
|
62
|
-
* was performed, and any attempts to catchup from a different
|
|
63
|
-
* point fail.
|
|
64
|
-
*
|
|
65
|
-
* Conversely, if non-initial changes have flowed through the system
|
|
66
|
-
* (i.e. via the replication stream), the ChangeDB must *not* be empty,
|
|
67
|
-
* and the earliest change in the `changeLog` represents the earliest
|
|
68
|
-
* "commit" from (after) which a subscriber can be caught up.
|
|
69
|
-
* * Any attempts to catchup from an earlier point must fail with
|
|
70
|
-
* a `WatermarkTooOld` error.
|
|
71
|
-
* * Failure to do so could result in streaming changes to the
|
|
72
|
-
* subscriber such that there is a gap in its replication history.
|
|
73
|
-
*
|
|
74
|
-
* Note: Subscribers (i.e. `incremental-syncer`) consider an "error" signal
|
|
75
|
-
* an unrecoverable error and shut down in response. This allows the
|
|
76
|
-
* production system to replace it with a new task and fresh copy of the
|
|
77
|
-
* replica backup.
|
|
78
|
-
*/
|
|
79
|
-
export declare class Storer implements Service {
|
|
80
|
-
#private;
|
|
81
|
-
readonly id = "storer";
|
|
82
|
-
constructor(lc: LogContext, shard: ShardID, taskID: string, discoveryAddress: string, discoveryProtocol: string, dbProvider: PostgresDBProvider, subscriptionState: ReplicaSubscriptionState, onCommitted: (c: Commit | UpstreamStatusMessage) => void, onFatal: (err: Error) => void, { backPressureLimitHeapProportion, statementTimeoutMs, changeLogBatchSize, drainTimeoutMs, }: TuningOptions);
|
|
83
|
-
/**
|
|
84
|
-
* Re-initializes a change log that is no longer maintained from the
|
|
85
|
-
* replica's state, taking ownership of it in the process (which is then
|
|
86
|
-
* assumed again at its new head, see {@link assumeOwnershipAtHead}).
|
|
87
|
-
* See {@link reinitializeChangeLog}.
|
|
88
|
-
*/
|
|
89
|
-
reinitializeFromReplica(params: Omit<ChangeLogReinitialization, 'owner' | 'ownerAddress'>): Promise<'reinitialized' | 'maintained'>;
|
|
90
|
-
/**
|
|
91
|
-
* Prepares to assume ownership of the change log at its head, while it may
|
|
92
|
-
* still be owned and maintained by another change-streamer. This allows the
|
|
93
|
-
* previous owner to continue to serve subscribers while this change-source's
|
|
94
|
-
* upstream decodes the WAL to catch up to the head of the change log, which
|
|
95
|
-
* may be many minutes worth of transactions for large DBs.
|
|
96
|
-
*
|
|
97
|
-
* Once the change stream is started from the head of the change log:
|
|
98
|
-
*
|
|
99
|
-
* * Transactions that the change log already contains (i.e. stored by the
|
|
100
|
-
* previous owner) are not stored again, but are otherwise processed
|
|
101
|
-
* normally (e.g. for upstream acks, since they have been stored).
|
|
102
|
-
* * Ownership is assumed in the transaction that stores the first
|
|
103
|
-
* transaction past the head of the change log. The previous owner's
|
|
104
|
-
* (subsequent) transactions fail its ownership check, which makes this
|
|
105
|
-
* transaction the one immediately after the previous owner's last one.
|
|
106
|
-
* * Ownership is also assumed upon a {@link status} at or past the head of
|
|
107
|
-
* the change log (outside of a transaction), which covers an idle
|
|
108
|
-
* upstream: all transactions up to the status position have been
|
|
109
|
-
* received, and any past the head would have been stored.
|
|
110
|
-
*
|
|
111
|
-
* Subscribers are caught up from the change log as usual, as the stream
|
|
112
|
-
* (which is forwarded to them) starts from its head.
|
|
113
|
-
*
|
|
114
|
-
* Backfill transactions are synthesized by each change-streamer's change
|
|
115
|
-
* source, and thus never correspond to those stored by the previous owner.
|
|
116
|
-
* Until ownership is assumed, they are not stored, and no backfills are
|
|
117
|
-
* requested from the change log (see
|
|
118
|
-
* {@link getStartStreamInitializationParameters}). Once ownership is
|
|
119
|
-
* assumed, a restart of the change stream is requested if the change log has
|
|
120
|
-
* pending backfills or if a backfill transaction was skipped.
|
|
121
|
-
*/
|
|
122
|
-
assumeOwnershipAtHead(takeover: OwnershipTakeover): Promise<void>;
|
|
123
|
-
/**
|
|
124
|
-
* Whether ownership of the change log is pending, i.e. after
|
|
125
|
-
* {@link assumeOwnershipAtHead} and before ownership is assumed.
|
|
126
|
-
*/
|
|
127
|
-
get ownershipPending(): boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Relays a status message received outside of a transaction, which is
|
|
130
|
-
* used to assume ownership of the change log on an idle upstream. A no-op
|
|
131
|
-
* unless ownership is pending.
|
|
132
|
-
*/
|
|
133
|
-
status(watermark: string): void;
|
|
134
|
-
/**
|
|
135
|
-
* Assumes ownership of the change log immediately, regardless of its head.
|
|
136
|
-
* This is used for in tests.
|
|
137
|
-
*
|
|
138
|
-
* A production change-streamer instead takes over the change log at its head
|
|
139
|
-
* (see {@link assumeOwnershipAtHead}).
|
|
140
|
-
*/
|
|
141
|
-
assumeOwnership(): Promise<void>;
|
|
142
|
-
/**
|
|
143
|
-
* The whole of what a stream connection starts from: where to resume, what to
|
|
144
|
-
* ask the change source to backfill, and the raw cookie set those requests
|
|
145
|
-
* were derived from.
|
|
146
|
-
*
|
|
147
|
-
* All four statements run in one REPEATABLE READ transaction, so they see one
|
|
148
|
-
* snapshot. That is invariant 15 — the resume watermark and the cookies must
|
|
149
|
-
* come from the same store, read at the same position — and it is why the
|
|
150
|
-
* cookies are read here rather than by a second call: a cookie set paired
|
|
151
|
-
* with a watermark it was not folded to loses every backfill that completed
|
|
152
|
-
* in the interval, and those rows are not replayable from the slot.
|
|
153
|
-
*
|
|
154
|
-
* `cookies` is not `backfillRequests` in another shape. The request list is
|
|
155
|
-
* driven off `backfilling`, so it drops the metadata of every table with no
|
|
156
|
-
* in-flight backfill — correct for starting a stream, lossy as the cookie
|
|
157
|
-
* snapshot that the SQLite change log continues folding onto.
|
|
158
|
-
*/
|
|
159
|
-
getStartStreamInitializationParameters(): Promise<{
|
|
160
|
-
lastWatermark: string;
|
|
161
|
-
backfillRequests: BackfillRequest[];
|
|
162
|
-
cookies: CookieSet;
|
|
163
|
-
}>;
|
|
164
|
-
getMinWatermarkForCatchup(): Promise<string | null>;
|
|
165
|
-
/**
|
|
166
|
-
* Returns the retained Postgres catchup bounds.
|
|
167
|
-
* `minWatermark` is the oldest transaction, or `null` for a new replica.
|
|
168
|
-
* `lastWatermark` is the durable head.
|
|
169
|
-
*/
|
|
170
|
-
getCatchupBounds(): Promise<{
|
|
171
|
-
minWatermark: string | null;
|
|
172
|
-
lastWatermark: string;
|
|
173
|
-
}>;
|
|
174
|
-
/**
|
|
175
|
-
* Lists at most `limit` committed transaction watermarks in
|
|
176
|
-
* `(afterWatermark, throughWatermark]`, in ascending order.
|
|
177
|
-
*/
|
|
178
|
-
listCommitWatermarks(afterWatermark: string, throughWatermark: string, limit: number): Promise<string[]>;
|
|
179
|
-
/**
|
|
180
|
-
* Reads `(afterWatermark, throughWatermark]` in stream order and bounded batches.
|
|
181
|
-
* This query matches the subscriber catchup query.
|
|
182
|
-
*
|
|
183
|
-
* Both queries fail when an escaped NUL reaches `change->'tag'`.
|
|
184
|
-
* Postgres cannot convert that value to text.
|
|
185
|
-
*/
|
|
186
|
-
readCatchupRange(afterWatermark: string, throughWatermark: string, batchRows?: number): AsyncIterable<ChangeLogEntry[]>;
|
|
187
|
-
purgeRecordsBefore(watermark: string): Promise<number>;
|
|
188
|
-
/**
|
|
189
|
-
* @returns The JSON stringified stream message to be sent downstream.
|
|
190
|
-
*/
|
|
191
|
-
store(watermark: string, data: ChangeStreamData, serialized?: SerializedChangeStreamData): string;
|
|
192
|
-
abort(): void;
|
|
193
|
-
catchup(subscriber: Subscriber, mode: ReplicatorMode): void;
|
|
194
|
-
readyForMore(): Promise<void> | undefined;
|
|
195
|
-
/**
|
|
196
|
-
* Runs the storer loop until {@link stop()} is called, or an error is thrown.
|
|
197
|
-
* Once {@link run()} completes, it can be called again.
|
|
198
|
-
*/
|
|
199
|
-
run(): Promise<void>;
|
|
200
|
-
/**
|
|
201
|
-
* Waits until all currently queued entries have been processed.
|
|
202
|
-
* This is only used in tests.
|
|
203
|
-
*/
|
|
204
|
-
allProcessed(): Promise<void>;
|
|
205
|
-
/**
|
|
206
|
-
* Stops the storer and waits up to a drain timeout for entries to drain,
|
|
207
|
-
* throwing an exception if it doesn't drain in time, in order to abort
|
|
208
|
-
* the server when PG (or the connection to it) appears to be wedged.
|
|
209
|
-
*/
|
|
210
|
-
stop(): Promise<void>;
|
|
211
|
-
}
|
|
212
|
-
export declare class PurgeLock {
|
|
213
|
-
#private;
|
|
214
|
-
readonly replicaVersion: string;
|
|
215
|
-
readonly minWatermark: string;
|
|
216
|
-
/**
|
|
217
|
-
* The head of the change log (i.e. its `lastWatermark`) when the lock was
|
|
218
|
-
* acquired. The change log is resumed from its head, which only advances,
|
|
219
|
-
* so a stream cannot (correctly) be started from before it.
|
|
220
|
-
*/
|
|
221
|
-
readonly headWatermark: string;
|
|
222
|
-
constructor(lc: LogContext, tx: TransactionPool, replicaVersion: string, watermark: string, headWatermark: string);
|
|
223
|
-
release(): Promise<void>;
|
|
224
|
-
}
|
|
225
|
-
export declare class PurgeLocker {
|
|
226
|
-
#private;
|
|
227
|
-
constructor(lc: LogContext, shard: ShardID, db: PostgresDB);
|
|
228
|
-
/**
|
|
229
|
-
* Locks the oldest row of the change log, preventing it from being purged.
|
|
230
|
-
*
|
|
231
|
-
* @param slotWatermark The position of the replication slot from which the
|
|
232
|
-
* change log is to be resumed (as a watermark). If specified and the
|
|
233
|
-
* head of the change log is behind it, the change log may be missing
|
|
234
|
-
* transactions that the slot will not stream, in which case nothing is
|
|
235
|
-
* locked and `'behind-slot'` is returned. Conversely, a head at or past
|
|
236
|
-
* the slot's position means that the stream (which resumes from the
|
|
237
|
-
* head) will not skip anything.
|
|
238
|
-
* @returns `null` if the change log is empty.
|
|
239
|
-
*/
|
|
240
|
-
acquire(): Promise<PurgeLock | null>;
|
|
241
|
-
acquire(slotWatermark?: string | undefined): Promise<PurgeLock | null | 'behind-slot'>;
|
|
242
|
-
}
|
|
243
|
-
type TaskKey = JSONObject;
|
|
244
|
-
type TaskDoneFn = () => void;
|
|
245
|
-
/**
|
|
246
|
-
* Periodic monitor for detecting the pathological condition in which a db
|
|
247
|
-
* query hangs forever because of a connection problem, such as a half-closed
|
|
248
|
-
* socket.
|
|
249
|
-
*
|
|
250
|
-
* Use this for db calls that recur or accumulate progress within a single
|
|
251
|
-
* logical operation on the main storer loop (e.g. the queue-processing loop,
|
|
252
|
-
* or a multi-batch catchup read), where "no progress for N ms" is the
|
|
253
|
-
* meaningful signal. For a one-off db call -- including ones made before
|
|
254
|
-
* {@link Storer.run} starts this monitor's polling -- use a plain timeout
|
|
255
|
-
* (see `Storer.#withTimeout`) instead.
|
|
256
|
-
*
|
|
257
|
-
* The failure handler should stop the server. The ProgressMonitor will
|
|
258
|
-
* assume this and stop itself after calling it.
|
|
259
|
-
*
|
|
260
|
-
* Internal to the Storer, but exported for testing.
|
|
261
|
-
*/
|
|
262
|
-
export declare class ProgressMonitor {
|
|
263
|
-
#private;
|
|
264
|
-
constructor(lc: LogContext, failureThresholdMs: number, onFailure: (err: Error) => void);
|
|
265
|
-
start(): void;
|
|
266
|
-
checkTaskProgress(now: Date): void;
|
|
267
|
-
/**
|
|
268
|
-
* Starts a task to be tracked.
|
|
269
|
-
*
|
|
270
|
-
* @return a callback to invoke when the task is done.
|
|
271
|
-
*/
|
|
272
|
-
trackTask(task: TaskKey, now?: Date): TaskDoneFn;
|
|
273
|
-
stop(): void;
|
|
274
|
-
}
|
|
275
|
-
export {};
|
|
276
|
-
//# sourceMappingURL=storer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storer.d.ts","sourceRoot":"","sources":["../../../../../../zero-cache/src/services/change-streamer/storer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,uCAAuC,CAAC;AAO/C,OAAO,EAAiB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAC,KAAK,UAAU,EAA2B,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAY,KAAK,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAE9D,OAAO,EAKL,KAAK,eAAe,EAMrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,MAAM,EACZ,MAAM,iDAAiD,CAAC;AACzD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAIL,KAAK,SAAS,EAEf,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AAC3C,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAChC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAKL,KAA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