@minnowdb/core 0.2.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -32
- package/dist/block-format/block.d.ts +32 -13
- package/dist/block-format/block.js +179 -55
- package/dist/block-format/checksum.d.ts +2 -1
- package/dist/block-format/checksum.js +5 -2
- package/dist/block-format/codecs.d.ts +7 -2
- package/dist/block-format/codecs.js +53 -12
- package/dist/block-format/column.d.ts +3 -2
- package/dist/block-format/column.js +96 -30
- package/dist/block-format/index.d.ts +2 -2
- package/dist/block-format/index.js +2 -2
- package/dist/block-format/physical.d.ts +8 -2
- package/dist/block-format/physical.js +14 -6
- package/dist/block-format/types.d.ts +7 -3
- package/dist/block-format/types.js +0 -1
- package/dist/block-format/unicode.d.ts +11 -0
- package/dist/block-format/unicode.js +46 -0
- package/dist/date-value.d.ts +15 -0
- package/dist/date-value.js +64 -0
- package/dist/engine/artifact-cache.d.ts +2 -1
- package/dist/engine/artifact-cache.js +5 -1
- package/dist/engine/batch.d.ts +11 -3
- package/dist/engine/batch.js +17 -7
- package/dist/engine/buffered-writer.d.ts +2 -1
- package/dist/engine/buffered-writer.js +34 -9
- package/dist/engine/cache-limits.d.ts +25 -0
- package/dist/engine/cache-limits.js +25 -0
- package/dist/engine/catalog.d.ts +24 -5
- package/dist/engine/catalog.js +34 -7
- package/dist/engine/client.d.ts +29 -7
- package/dist/engine/client.js +216 -40
- package/dist/engine/database.d.ts +224 -39
- package/dist/engine/database.js +7475 -1539
- package/dist/engine/defaults.d.ts +4 -8
- package/dist/engine/defaults.js +46 -22
- package/dist/engine/errors.d.ts +19 -1
- package/dist/engine/errors.js +32 -2
- package/dist/engine/fts.d.ts +0 -6
- package/dist/engine/fts.js +41 -14
- package/dist/engine/group-index.d.ts +0 -1
- package/dist/engine/group-index.js +6 -11
- package/dist/engine/index.d.ts +16 -10
- package/dist/engine/index.js +12 -9
- package/dist/engine/join-index.d.ts +0 -1
- package/dist/engine/join-index.js +2 -2
- package/dist/engine/keyed-live.d.ts +57 -0
- package/dist/engine/keyed-live.js +226 -0
- package/dist/engine/live-api.d.ts +4 -0
- package/dist/engine/live-api.js +4 -0
- package/dist/engine/live.d.ts +43 -26
- package/dist/engine/live.js +504 -126
- package/dist/engine/memory.d.ts +2 -1
- package/dist/engine/memory.js +3 -2
- package/dist/engine/optimizer.d.ts +0 -1
- package/dist/engine/optimizer.js +262 -27
- package/dist/engine/query-api.d.ts +3 -0
- package/dist/engine/query-api.js +3 -0
- package/dist/engine/query-cache.d.ts +1 -2
- package/dist/engine/query-cache.js +7 -5
- package/dist/engine/query.d.ts +134 -29
- package/dist/engine/query.js +1668 -372
- package/dist/engine/result-wire.d.ts +0 -1
- package/dist/engine/result-wire.js +2 -2
- package/dist/engine/schema-wire.d.ts +6 -3
- package/dist/engine/schema-wire.js +40 -34
- package/dist/engine/schema.d.ts +156 -80
- package/dist/engine/schema.js +570 -108
- package/dist/engine/sort-keys.d.ts +4 -4
- package/dist/engine/sort-keys.js +44 -29
- package/dist/engine/sql-domains.d.ts +31 -0
- package/dist/engine/sql-domains.js +585 -0
- package/dist/engine/sql-driver.d.ts +19 -0
- package/dist/engine/sql-driver.js +1 -0
- package/dist/engine/sql-json.d.ts +7 -9
- package/dist/engine/sql-json.js +75 -15
- package/dist/engine/sql-semantics.d.ts +8 -3
- package/dist/engine/sql-semantics.js +458 -30
- package/dist/engine/typed-live.d.ts +67 -0
- package/dist/engine/typed-live.js +349 -0
- package/dist/engine/vector.d.ts +12 -2
- package/dist/engine/vector.js +635 -119
- package/dist/engine/worker-host.d.ts +9 -2
- package/dist/engine/worker-host.js +620 -152
- package/dist/engine/worker.d.ts +0 -1
- package/dist/engine/worker.js +3 -3
- package/dist/engine/write-block-planner.d.ts +18 -0
- package/dist/engine/write-block-planner.js +112 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/plan/index.d.ts +3 -4
- package/dist/plan/index.js +3 -4
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/storage/indexeddb.d.ts +99 -51
- package/dist/storage/indexeddb.js +13448 -2660
- package/dist/storage/memory.d.ts +64 -57
- package/dist/storage/memory.js +1042 -128
- package/dist/storage/opfs/files.d.ts +18 -7
- package/dist/storage/opfs/files.js +115 -28
- package/dist/storage/opfs/index.d.ts +1 -1
- package/dist/storage/opfs/index.js +1 -1
- package/dist/storage/opfs/leader.d.ts +409 -75
- package/dist/storage/opfs/leader.js +4621 -650
- package/dist/storage/opfs/rpc.d.ts +15 -3
- package/dist/storage/opfs/rpc.js +224 -2
- package/dist/storage/opfs/snapshot-ledger.d.ts +40 -0
- package/dist/storage/opfs/snapshot-ledger.js +281 -0
- package/dist/storage/opfs/store.d.ts +33 -99
- package/dist/storage/opfs/store.js +453 -364
- package/dist/storage/persistence.d.ts +37 -0
- package/dist/storage/persistence.js +78 -0
- package/dist/storage/snapshot-stream.d.ts +24 -0
- package/dist/storage/snapshot-stream.js +897 -0
- package/dist/storage/snapshot.d.ts +9 -85
- package/dist/storage/snapshot.js +33 -265
- package/dist/storage/toolkit/extents.d.ts +41 -7
- package/dist/storage/toolkit/extents.js +402 -39
- package/dist/storage/toolkit/index.d.ts +4 -5
- package/dist/storage/toolkit/index.js +28 -4
- package/dist/storage/toolkit/record-core.d.ts +182 -55
- package/dist/storage/toolkit/record-core.js +6158 -1331
- package/dist/storage/toolkit/sync-file.d.ts +10 -1
- package/dist/storage/toolkit/sync-file.js +50 -2
- package/dist/storage/toolkit/wal.d.ts +23 -5
- package/dist/storage/toolkit/wal.js +89 -27
- package/dist/storage/toolkit/wire.d.ts +15 -2
- package/dist/storage/toolkit/wire.js +199 -10
- package/dist/storage/types.d.ts +1439 -204
- package/dist/storage/types.js +1745 -141
- package/dist/testing/block-store-conformance.d.ts +0 -1
- package/dist/testing/block-store-conformance.js +1009 -119
- package/dist/testing/index.d.ts +46 -26
- package/dist/testing/index.js +112 -57
- package/dist/testing/opfs-shim.d.ts +13 -3
- package/dist/testing/opfs-shim.js +40 -6
- package/dist/testing/simulator.d.ts +97 -0
- package/dist/testing/simulator.js +591 -0
- package/dist/testing/sqllogictest.d.ts +89 -0
- package/dist/testing/sqllogictest.js +434 -0
- package/dist/transactions/index.d.ts +92 -16
- package/dist/transactions/index.js +1074 -236
- package/dist/worker-protocol/index.d.ts +3 -2
- package/dist/worker-protocol/index.js +2 -5
- package/package.json +53 -3
- package/postgres-feature-profile.json +223 -0
- package/sql-feature-matrix.json +172 -252
- package/dist/block-format/block.d.ts.map +0 -1
- package/dist/block-format/block.js.map +0 -1
- package/dist/block-format/checksum.d.ts.map +0 -1
- package/dist/block-format/checksum.js.map +0 -1
- package/dist/block-format/codecs.d.ts.map +0 -1
- package/dist/block-format/codecs.js.map +0 -1
- package/dist/block-format/column.d.ts.map +0 -1
- package/dist/block-format/column.js.map +0 -1
- package/dist/block-format/index.d.ts.map +0 -1
- package/dist/block-format/index.js.map +0 -1
- package/dist/block-format/physical.d.ts.map +0 -1
- package/dist/block-format/physical.js.map +0 -1
- package/dist/block-format/types.d.ts.map +0 -1
- package/dist/block-format/types.js.map +0 -1
- package/dist/engine/artifact-cache.d.ts.map +0 -1
- package/dist/engine/artifact-cache.js.map +0 -1
- package/dist/engine/batch.d.ts.map +0 -1
- package/dist/engine/batch.js.map +0 -1
- package/dist/engine/buffered-writer.d.ts.map +0 -1
- package/dist/engine/buffered-writer.js.map +0 -1
- package/dist/engine/catalog.d.ts.map +0 -1
- package/dist/engine/catalog.js.map +0 -1
- package/dist/engine/client.d.ts.map +0 -1
- package/dist/engine/client.js.map +0 -1
- package/dist/engine/coordinator.d.ts +0 -17
- package/dist/engine/coordinator.d.ts.map +0 -1
- package/dist/engine/coordinator.js +0 -60
- package/dist/engine/coordinator.js.map +0 -1
- package/dist/engine/database.d.ts.map +0 -1
- package/dist/engine/database.js.map +0 -1
- package/dist/engine/defaults.d.ts.map +0 -1
- package/dist/engine/defaults.js.map +0 -1
- package/dist/engine/errors.d.ts.map +0 -1
- package/dist/engine/errors.js.map +0 -1
- package/dist/engine/fts.d.ts.map +0 -1
- package/dist/engine/fts.js.map +0 -1
- package/dist/engine/group-index.d.ts.map +0 -1
- package/dist/engine/group-index.js.map +0 -1
- package/dist/engine/index.d.ts.map +0 -1
- package/dist/engine/index.js.map +0 -1
- package/dist/engine/join-index.d.ts.map +0 -1
- package/dist/engine/join-index.js.map +0 -1
- package/dist/engine/live.d.ts.map +0 -1
- package/dist/engine/live.js.map +0 -1
- package/dist/engine/memory.d.ts.map +0 -1
- package/dist/engine/memory.js.map +0 -1
- package/dist/engine/optimizer.d.ts.map +0 -1
- package/dist/engine/optimizer.js.map +0 -1
- package/dist/engine/query-cache.d.ts.map +0 -1
- package/dist/engine/query-cache.js.map +0 -1
- package/dist/engine/query.d.ts.map +0 -1
- package/dist/engine/query.js.map +0 -1
- package/dist/engine/result-wire.d.ts.map +0 -1
- package/dist/engine/result-wire.js.map +0 -1
- package/dist/engine/schema-wire.d.ts.map +0 -1
- package/dist/engine/schema-wire.js.map +0 -1
- package/dist/engine/schema.d.ts.map +0 -1
- package/dist/engine/schema.js.map +0 -1
- package/dist/engine/sort-keys.d.ts.map +0 -1
- package/dist/engine/sort-keys.js.map +0 -1
- package/dist/engine/sql-json.d.ts.map +0 -1
- package/dist/engine/sql-json.js.map +0 -1
- package/dist/engine/sql-semantics.d.ts.map +0 -1
- package/dist/engine/sql-semantics.js.map +0 -1
- package/dist/engine/vector.d.ts.map +0 -1
- package/dist/engine/vector.js.map +0 -1
- package/dist/engine/worker-host.d.ts.map +0 -1
- package/dist/engine/worker-host.js.map +0 -1
- package/dist/engine/worker.d.ts.map +0 -1
- package/dist/engine/worker.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/plan/index.d.ts.map +0 -1
- package/dist/plan/index.js.map +0 -1
- package/dist/storage/fixture-shape.d.ts +0 -42
- package/dist/storage/fixture-shape.d.ts.map +0 -1
- package/dist/storage/fixture-shape.js +0 -146
- package/dist/storage/fixture-shape.js.map +0 -1
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/storage/index.js.map +0 -1
- package/dist/storage/indexeddb.d.ts.map +0 -1
- package/dist/storage/indexeddb.js.map +0 -1
- package/dist/storage/memory.d.ts.map +0 -1
- package/dist/storage/memory.js.map +0 -1
- package/dist/storage/opfs/files.d.ts.map +0 -1
- package/dist/storage/opfs/files.js.map +0 -1
- package/dist/storage/opfs/index.d.ts.map +0 -1
- package/dist/storage/opfs/index.js.map +0 -1
- package/dist/storage/opfs/leader.d.ts.map +0 -1
- package/dist/storage/opfs/leader.js.map +0 -1
- package/dist/storage/opfs/rpc.d.ts.map +0 -1
- package/dist/storage/opfs/rpc.js.map +0 -1
- package/dist/storage/opfs/store.d.ts.map +0 -1
- package/dist/storage/opfs/store.js.map +0 -1
- package/dist/storage/snapshot.d.ts.map +0 -1
- package/dist/storage/snapshot.js.map +0 -1
- package/dist/storage/toolkit/extents.d.ts.map +0 -1
- package/dist/storage/toolkit/extents.js.map +0 -1
- package/dist/storage/toolkit/index.d.ts.map +0 -1
- package/dist/storage/toolkit/index.js.map +0 -1
- package/dist/storage/toolkit/record-core.d.ts.map +0 -1
- package/dist/storage/toolkit/record-core.js.map +0 -1
- package/dist/storage/toolkit/sync-file.d.ts.map +0 -1
- package/dist/storage/toolkit/sync-file.js.map +0 -1
- package/dist/storage/toolkit/wal.d.ts.map +0 -1
- package/dist/storage/toolkit/wal.js.map +0 -1
- package/dist/storage/toolkit/wire.d.ts.map +0 -1
- package/dist/storage/toolkit/wire.js.map +0 -1
- package/dist/storage/types.d.ts.map +0 -1
- package/dist/storage/types.js.map +0 -1
- package/dist/testing/block-store-conformance.d.ts.map +0 -1
- package/dist/testing/block-store-conformance.js.map +0 -1
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js.map +0 -1
- package/dist/testing/opfs-shim.d.ts.map +0 -1
- package/dist/testing/opfs-shim.js.map +0 -1
- package/dist/testing/seeds.d.ts +0 -11
- package/dist/testing/seeds.d.ts.map +0 -1
- package/dist/testing/seeds.js +0 -50
- package/dist/testing/seeds.js.map +0 -1
- package/dist/transactions/index.d.ts.map +0 -1
- package/dist/transactions/index.js.map +0 -1
- package/dist/worker-protocol/index.d.ts.map +0 -1
- package/dist/worker-protocol/index.js.map +0 -1
package/dist/storage/memory.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type BeginTransactionInput, type BeginTransactionResult, type CommitTransactionInput, type CompactionJobRecord, type CompactionJobRecordUpdate, type CreateGarbageCollectionJobInput, type BlockStore, type CatalogProbe, type
|
|
2
|
-
import type { DatabaseSnapshot, SnapshotLoadProgress } from "./snapshot.js";
|
|
1
|
+
import { type BeginSnapshotFrameExportInput, type SnapshotFrameExportSession, type ReadSnapshotExportFrameInput, type BeginSnapshotFrameImportInput, type SnapshotFrameImportSession, type RenewSnapshotFrameImportInput, type AppendSnapshotImportFramesInput, type FinishSnapshotFrameImportInput, type SnapshotFrame, type BeginTransactionInput, type BeginTransactionResult, type AbortTransactionIfExpiredInput, type CommitTransactionInput, type CloseSnapshotExportInput, type CompactionJobRecord, type CompactionJobRecordUpdate, type CreateGarbageCollectionJobInput, type UpdateGarbageCollectionPlanningInput, type DropTableColumnInput, type DropTableInput, type BlockStore, type AdoptAbortedSegmentInput, type CatalogProbe, type QueryCatalogState, type CatalogMutationOptions, type CancelSnapshotImportInput, type FtsCandidates, type FtsPostingQuery, type FtsPosting, type BeginPostingBuildInput, type RenewPostingBuildInput, type AppendPostingBuildChunkInput, type FinishPostingBuildInput, type AbortPostingBuildInput, type GarbageCollectionJobRecord, type GarbageCollectionStepResult, type LeaseRecord, type MoveLeaseInput, type Manifest, type ManifestSummary, type RowIdRange, type RollbackTransactionArtifactsInput, type RenewLeaseInput, type RenewTempOwnerInput, type RenewTransactionInput, type RunGarbageCollectionStepInput, type SegmentRecord, type InterruptedSnapshotImport, type InterruptedSnapshotImportAbortResult, type StageTransactionArtifactsInput, type StoragePage, type StorageStats, type TableRecord, type TableRecordUpdate, type TempOwnerRecord, type TempRunPage, type TransactionRecord, type TransactionRecordUpdate, type WriteTransactionInput, type BeginUniqueKeyBuildInput, type RenewUniqueKeyBuildInput, type AppendUniqueKeyBuildChunkInput, type FinishUniqueKeyBuildInput, type AbortUniqueKeyBuildInput, type UniqueKeyBuildRecord } from "./types.js";
|
|
3
2
|
/**
|
|
4
3
|
* The in-process store: record semantics live in `RecordCore` (shared with the OPFS store),
|
|
5
4
|
* block and temp-page bytes live in Maps here, and atomicity comes from running every mutating
|
|
@@ -8,12 +7,10 @@ import type { DatabaseSnapshot, SnapshotLoadProgress } from "./snapshot.js";
|
|
|
8
7
|
*/
|
|
9
8
|
export declare class MemoryBlockStore implements BlockStore {
|
|
10
9
|
#private;
|
|
11
|
-
addBlock(id: string, bytes: Uint8Array): Promise<void>;
|
|
12
|
-
addBlocks(blocks: readonly BlockWrite[]): Promise<void>;
|
|
13
10
|
getBlock(id: string): Promise<Uint8Array | undefined>;
|
|
14
11
|
getBlocks(ids: readonly string[]): Promise<Array<Uint8Array | undefined>>;
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
readManifestBlock(version: number | null, id: string): Promise<Uint8Array | undefined>;
|
|
13
|
+
hasManifestBlocks(version: number | null, ids: readonly string[]): Promise<boolean[]>;
|
|
17
14
|
putTempRunPage(page: TempRunPage): Promise<void>;
|
|
18
15
|
putTempRunPages(pages: readonly TempRunPage[]): Promise<void>;
|
|
19
16
|
getTempRunPage(ownerId: string, runId: string, pageIndex: number): Promise<Uint8Array | undefined>;
|
|
@@ -21,104 +18,114 @@ export declare class MemoryBlockStore implements BlockStore {
|
|
|
21
18
|
removeTempOwner(ownerId: string): Promise<void>;
|
|
22
19
|
createTempOwner(record: TempOwnerRecord): Promise<void>;
|
|
23
20
|
getTempOwner(ownerId: string): Promise<TempOwnerRecord | undefined>;
|
|
24
|
-
renewTempOwner(
|
|
21
|
+
renewTempOwner(input: RenewTempOwnerInput): Promise<TempOwnerRecord>;
|
|
25
22
|
removeTempOwnerIfExpired(ownerId: string, expiresAtCutoff: string): Promise<boolean>;
|
|
26
23
|
listTempOwnerIdsPage(afterOwnerId: string | null, limit: number): Promise<StoragePage<string, string>>;
|
|
27
|
-
|
|
24
|
+
listExpiredTempOwnerPage(expiresAtCutoff: string, afterCursor: string | null, limit: number): Promise<StoragePage<string, string>>;
|
|
25
|
+
addTable(record: TableRecord, options?: CatalogMutationOptions): Promise<void>;
|
|
28
26
|
getTable(id: string): Promise<TableRecord | undefined>;
|
|
29
|
-
updateTable(id: string, expectedRevision: number, update:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}): Promise<TableRecord>;
|
|
34
|
-
removeTable(id: string, expectedRevision: number): Promise<void>;
|
|
27
|
+
updateTable(id: string, expectedRevision: number, update: TableRecordUpdate): Promise<TableRecord>;
|
|
28
|
+
removeTable(id: string, expectedRevision: number, options?: CatalogMutationOptions): Promise<void>;
|
|
29
|
+
dropTable(input: DropTableInput): Promise<ManifestSummary>;
|
|
30
|
+
dropTableColumn(input: DropTableColumnInput): Promise<ManifestSummary>;
|
|
35
31
|
writeFtsBase(tableId: string, columnId: string, input: {
|
|
36
32
|
coversVersion: number;
|
|
37
33
|
chunks: FtsPosting[][];
|
|
38
34
|
totalTokens: number;
|
|
39
35
|
}): Promise<void>;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
removeFtsColumn(tableId: string, columnId: string): Promise<void>;
|
|
37
|
+
beginFtsBaseBuild(input: BeginPostingBuildInput): Promise<void>;
|
|
38
|
+
renewFtsBaseBuild(input: RenewPostingBuildInput): Promise<void>;
|
|
39
|
+
writeFtsBaseBuildChunk(input: AppendPostingBuildChunkInput): Promise<void>;
|
|
40
|
+
finishFtsBaseBuild(input: FinishPostingBuildInput): Promise<void>;
|
|
41
|
+
abortFtsBaseBuild(input: AbortPostingBuildInput): Promise<void>;
|
|
42
|
+
readFtsCandidates(tableId: string, columnId: string, terms: readonly FtsPostingQuery[], upToVersion: number, maxRowIds?: number): Promise<FtsCandidates & {
|
|
44
43
|
deltaChunkCount: number;
|
|
45
44
|
totalTokens: number;
|
|
46
45
|
coversVersion: number;
|
|
46
|
+
hasBase: boolean;
|
|
47
|
+
}>;
|
|
48
|
+
readFtsPostings(tableId: string, columnId: string, upToVersion: number, maxRowIds?: number, maxRetainedBytes?: number): Promise<{
|
|
49
|
+
postings: FtsPosting[];
|
|
50
|
+
overflow: boolean;
|
|
51
|
+
deltaChunkCount: number;
|
|
52
|
+
coversVersion: number;
|
|
53
|
+
hasBase: boolean;
|
|
47
54
|
}>;
|
|
48
55
|
getTableByName(name: string): Promise<TableRecord | undefined>;
|
|
49
56
|
listTables(): Promise<TableRecord[]>;
|
|
50
|
-
addSegment(record: SegmentRecord): Promise<void>;
|
|
51
57
|
getSegment(id: string): Promise<SegmentRecord | undefined>;
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
listSegmentPage(afterId: string | null, limit: number): Promise<StoragePage<SegmentRecord, string>>;
|
|
59
|
+
listTableSegmentPage(tableId: string, afterId: string | null, limit: number): Promise<StoragePage<SegmentRecord, string>>;
|
|
60
|
+
removeAbortedSegment(id: string, expectedTransactionId: string): Promise<boolean>;
|
|
61
|
+
adoptAbortedSegment(input: AdoptAbortedSegmentInput): Promise<TransactionRecord>;
|
|
54
62
|
reserveRowIds(tableId: string, count: number): Promise<RowIdRange>;
|
|
55
63
|
reserveAutoIncrement(tableId: string, columnId: string, count: number, atLeast?: bigint): Promise<RowIdRange>;
|
|
56
64
|
getExistingUniqueKeys(tableId: string, keyTokens: readonly string[]): Promise<string[]>;
|
|
65
|
+
beginUniqueKeyBuild(input: BeginUniqueKeyBuildInput): Promise<UniqueKeyBuildRecord>;
|
|
66
|
+
getUniqueKeyBuild(buildId: string): Promise<UniqueKeyBuildRecord | undefined>;
|
|
67
|
+
renewUniqueKeyBuild(input: RenewUniqueKeyBuildInput): Promise<UniqueKeyBuildRecord>;
|
|
68
|
+
appendUniqueKeyBuildChunk(input: AppendUniqueKeyBuildChunkInput): Promise<UniqueKeyBuildRecord>;
|
|
69
|
+
finishUniqueKeyBuild(input: FinishUniqueKeyBuildInput): Promise<TableRecord>;
|
|
70
|
+
abortUniqueKeyBuild(input: AbortUniqueKeyBuildInput): Promise<boolean>;
|
|
57
71
|
getCurrentManifestVersion(): Promise<number | null>;
|
|
58
72
|
getCatalogProbe(): Promise<CatalogProbe>;
|
|
59
|
-
|
|
60
|
-
* Composed over this store's own methods rather than delegated to the core, so a subclass
|
|
61
|
-
* that instruments `getTransactions` or `listSegments` observes these internal reads too —
|
|
62
|
-
* the engine's read-count tests rely on that.
|
|
63
|
-
*/
|
|
64
|
-
getQueryCatalogState(tableNames: readonly string[]): Promise<QueryCatalogState>;
|
|
73
|
+
getQueryCatalogState(names: readonly string[]): Promise<QueryCatalogState>;
|
|
65
74
|
getCurrentManifest(): Promise<Manifest | undefined>;
|
|
66
75
|
getManifest(version: number): Promise<Manifest | undefined>;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
76
|
+
listManifestBlockPage(input: Parameters<BlockStore["listManifestBlockPage"]>[0]): Promise<import("./types.js").ManifestBlockPage>;
|
|
77
|
+
listRetiredManifestBlockPage(input: Parameters<BlockStore["listRetiredManifestBlockPage"]>[0]): Promise<import("./types.js").ManifestBlockPage>;
|
|
78
|
+
listManifestPage(afterVersion: number | null, limit: number): Promise<StoragePage<ManifestSummary, number>>;
|
|
70
79
|
beginTransaction(input: BeginTransactionInput): Promise<BeginTransactionResult>;
|
|
71
80
|
createTransaction(record: TransactionRecord): Promise<void>;
|
|
72
81
|
getTransaction(id: string): Promise<TransactionRecord | undefined>;
|
|
73
82
|
getTransactions(ids: readonly string[]): Promise<Array<TransactionRecord | undefined>>;
|
|
74
|
-
listTransactions(): Promise<TransactionRecord[]>;
|
|
75
83
|
listTransactionPage(afterId: string | null, limit: number): Promise<StoragePage<TransactionRecord, string>>;
|
|
76
84
|
updateTransaction(id: string, expectedRevision: number, update: TransactionRecordUpdate): Promise<TransactionRecord>;
|
|
85
|
+
renewTransaction(input: RenewTransactionInput): Promise<boolean>;
|
|
86
|
+
abortTransactionIfExpired(input: AbortTransactionIfExpiredInput): Promise<TransactionRecord | undefined>;
|
|
77
87
|
stageTransactionArtifacts(input: StageTransactionArtifactsInput): Promise<TransactionRecord>;
|
|
88
|
+
rollbackTransactionArtifacts(input: RollbackTransactionArtifactsInput): Promise<TransactionRecord>;
|
|
78
89
|
commitTransaction(input: CommitTransactionInput): Promise<ManifestSummary>;
|
|
79
90
|
writeTransaction(input: WriteTransactionInput): Promise<ManifestSummary>;
|
|
80
91
|
createLease(record: LeaseRecord): Promise<void>;
|
|
81
92
|
getLease(id: string): Promise<LeaseRecord | undefined>;
|
|
82
93
|
listLeases(): Promise<LeaseRecord[]>;
|
|
83
|
-
|
|
84
|
-
|
|
94
|
+
listExpiredLeasePage(expiresAtCutoff: string, afterCursor: string | null, limit: number): Promise<StoragePage<LeaseRecord, string>>;
|
|
95
|
+
renewLease(input: RenewLeaseInput): Promise<LeaseRecord>;
|
|
96
|
+
moveLease(input: MoveLeaseInput): Promise<LeaseRecord>;
|
|
85
97
|
removeLeaseIfExpired(id: string, expectedRevision: number, expiresAtCutoff: string): Promise<boolean>;
|
|
86
|
-
removeLease(
|
|
98
|
+
removeLease(input: {
|
|
99
|
+
id: string;
|
|
100
|
+
ownerId: string;
|
|
101
|
+
}): Promise<boolean>;
|
|
87
102
|
createCompactionJob(record: CompactionJobRecord): Promise<void>;
|
|
88
103
|
getCompactionJob(id: string): Promise<CompactionJobRecord | undefined>;
|
|
89
104
|
listCompactionJobs(tableId?: string): Promise<CompactionJobRecord[]>;
|
|
90
105
|
listCompactionJobPage(afterId: string | null, limit: number): Promise<StoragePage<CompactionJobRecord, string>>;
|
|
91
106
|
updateCompactionJob(id: string, expectedRevision: number, update: CompactionJobRecordUpdate): Promise<CompactionJobRecord>;
|
|
92
107
|
cancelCompactionJob(id: string, expectedRevision: number, cancelledAt: string): Promise<CompactionJobRecord>;
|
|
93
|
-
removeCompactionJob(id: string): Promise<
|
|
108
|
+
removeCompactionJob(id: string): Promise<boolean>;
|
|
94
109
|
createGarbageCollectionJob(input: CreateGarbageCollectionJobInput): Promise<GarbageCollectionJobRecord>;
|
|
110
|
+
updateGarbageCollectionPlanning(input: UpdateGarbageCollectionPlanningInput): Promise<GarbageCollectionJobRecord>;
|
|
95
111
|
getGarbageCollectionJob(id: string): Promise<GarbageCollectionJobRecord | undefined>;
|
|
96
112
|
listGarbageCollectionJobs(): Promise<GarbageCollectionJobRecord[]>;
|
|
113
|
+
listGarbageCollectionJobPage(afterId: string | null, limit: number): Promise<StoragePage<GarbageCollectionJobRecord, string>>;
|
|
97
114
|
runGarbageCollectionStep(input: RunGarbageCollectionStepInput): Promise<GarbageCollectionStepResult>;
|
|
98
|
-
removePrunedManifestRecords(): Promise<number>;
|
|
115
|
+
removePrunedManifestRecords(maxItems: number): Promise<number>;
|
|
99
116
|
removeGarbageCollectionJob(id: string): Promise<void>;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
*
|
|
111
|
-
* Progress is reported for parity with the IndexedDB store rather than because it is needed:
|
|
112
|
-
* an in-memory load is a handful of map writes with no transaction to break it into, so it
|
|
113
|
-
* reports the start and then the end.
|
|
114
|
-
*/
|
|
115
|
-
importSnapshot(snapshot: DatabaseSnapshot, options?: {
|
|
116
|
-
onProgress?: (progress: SnapshotLoadProgress) => void;
|
|
117
|
-
}): Promise<void>;
|
|
118
|
-
/** Builds a store holding exactly what the snapshot captured. */
|
|
119
|
-
static fromSnapshot(snapshot: DatabaseSnapshot): MemoryBlockStore;
|
|
117
|
+
beginSnapshotFrameExport(input: BeginSnapshotFrameExportInput): Promise<SnapshotFrameExportSession>;
|
|
118
|
+
readSnapshotExportFrame(input: ReadSnapshotExportFrameInput): Promise<SnapshotFrame | undefined>;
|
|
119
|
+
closeSnapshotFrameExport(input: CloseSnapshotExportInput): Promise<boolean>;
|
|
120
|
+
beginSnapshotFrameImport(input: BeginSnapshotFrameImportInput): Promise<SnapshotFrameImportSession>;
|
|
121
|
+
renewSnapshotFrameImport(input: RenewSnapshotFrameImportInput): Promise<SnapshotFrameImportSession>;
|
|
122
|
+
appendSnapshotImportFrames(input: AppendSnapshotImportFramesInput): Promise<SnapshotFrameImportSession>;
|
|
123
|
+
finishSnapshotFrameImport(input: FinishSnapshotFrameImportInput): Promise<void>;
|
|
124
|
+
cancelSnapshotFrameImport(input: CancelSnapshotImportInput): Promise<InterruptedSnapshotImportAbortResult>;
|
|
125
|
+
inspectInterruptedImport(): Promise<InterruptedSnapshotImport | null>;
|
|
126
|
+
abortInterruptedImport(identity: string): Promise<InterruptedSnapshotImportAbortResult>;
|
|
120
127
|
/** Block and spill bytes held; the record maps are negligible beside them. */
|
|
121
128
|
getLogicalStorageBytes(): Promise<number>;
|
|
129
|
+
getStorageStats(): Promise<StorageStats>;
|
|
122
130
|
close(): void;
|
|
123
131
|
}
|
|
124
|
-
//# sourceMappingURL=memory.d.ts.map
|