@minnowdb/core 0.6.9 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/block-format/block.js +254 -325
  2. package/dist/block-format/checksum.js +30 -52
  3. package/dist/block-format/codecs.js +112 -125
  4. package/dist/block-format/column.js +187 -205
  5. package/dist/block-format/index.js +5 -1
  6. package/dist/block-format/physical.js +371 -387
  7. package/dist/block-format/types.js +4 -1
  8. package/dist/block-format/unicode.js +30 -39
  9. package/dist/date-value.d.ts +5 -0
  10. package/dist/date-value.js +71 -41
  11. package/dist/engine/artifact-cache.js +106 -116
  12. package/dist/engine/batch.js +36 -44
  13. package/dist/engine/buffered-writer.js +156 -158
  14. package/dist/engine/byte-estimates.js +20 -22
  15. package/dist/engine/cache-limits.js +24 -25
  16. package/dist/engine/cancellation.js +5 -3
  17. package/dist/engine/catalog.js +64 -73
  18. package/dist/engine/client.js +715 -780
  19. package/dist/engine/database.js +15952 -18465
  20. package/dist/engine/defaults.js +104 -111
  21. package/dist/engine/errors.js +113 -128
  22. package/dist/engine/fts.js +233 -280
  23. package/dist/engine/group-index.js +287 -321
  24. package/dist/engine/index.js +23 -12
  25. package/dist/engine/join-index.js +177 -186
  26. package/dist/engine/keyed-live.js +168 -173
  27. package/dist/engine/live-api.js +0 -1
  28. package/dist/engine/live-equal.js +32 -37
  29. package/dist/engine/live.js +603 -647
  30. package/dist/engine/memory.js +109 -111
  31. package/dist/engine/optimizer.d.ts +19 -1
  32. package/dist/engine/optimizer.js +2642 -2515
  33. package/dist/engine/point-read.d.ts +4 -2
  34. package/dist/engine/point-read.js +121 -171
  35. package/dist/engine/query-api.js +12 -3
  36. package/dist/engine/query-cache.js +61 -69
  37. package/dist/engine/query.d.ts +45 -0
  38. package/dist/engine/query.js +8506 -9375
  39. package/dist/engine/result-wire.js +221 -252
  40. package/dist/engine/schema-wire.js +97 -112
  41. package/dist/engine/schema.js +1099 -1254
  42. package/dist/engine/sort-keys.js +315 -389
  43. package/dist/engine/sql-domains.d.ts +7 -1
  44. package/dist/engine/sql-domains.js +648 -734
  45. package/dist/engine/sql-driver.js +0 -1
  46. package/dist/engine/sql-functions.d.ts +11 -0
  47. package/dist/engine/sql-functions.js +1092 -0
  48. package/dist/engine/sql-json.js +199 -218
  49. package/dist/engine/sql-semantics.d.ts +25 -4
  50. package/dist/engine/sql-semantics.js +579 -513
  51. package/dist/engine/typed-live.js +271 -293
  52. package/dist/engine/vector.d.ts +7 -1
  53. package/dist/engine/vector.js +4513 -4580
  54. package/dist/engine/worker-host.d.ts +8 -63
  55. package/dist/engine/worker-host.js +28 -1130
  56. package/dist/engine/worker-indexeddb.d.ts +1 -0
  57. package/dist/engine/worker-indexeddb.js +3 -0
  58. package/dist/engine/worker-memory.d.ts +1 -0
  59. package/dist/engine/worker-memory.js +3 -0
  60. package/dist/engine/worker-opfs.d.ts +1 -0
  61. package/dist/engine/worker-opfs.js +3 -0
  62. package/dist/engine/worker-server.d.ts +93 -0
  63. package/dist/engine/worker-server.js +999 -0
  64. package/dist/engine/worker-store-indexeddb.d.ts +2 -0
  65. package/dist/engine/worker-store-indexeddb.js +11 -0
  66. package/dist/engine/worker-store-memory.d.ts +2 -0
  67. package/dist/engine/worker-store-memory.js +6 -0
  68. package/dist/engine/worker-store-opfs.d.ts +2 -0
  69. package/dist/engine/worker-store-opfs.js +9 -0
  70. package/dist/engine/worker.js +0 -12
  71. package/dist/engine/write-block-planner.js +93 -100
  72. package/dist/plan/index.js +15 -16
  73. package/dist/plan/model.d.ts +9 -1
  74. package/dist/plan/model.js +20 -27
  75. package/dist/storage/index.js +0 -12
  76. package/dist/storage/indexeddb.js +11776 -13171
  77. package/dist/storage/memory.js +1198 -1241
  78. package/dist/storage/opfs/files.js +238 -295
  79. package/dist/storage/opfs/index.js +9 -3
  80. package/dist/storage/opfs/leader.js +4386 -4856
  81. package/dist/storage/opfs/rpc.js +223 -259
  82. package/dist/storage/opfs/snapshot-ledger.js +219 -260
  83. package/dist/storage/opfs/store.js +884 -1003
  84. package/dist/storage/persistence.js +59 -74
  85. package/dist/storage/snapshot-stream.js +788 -826
  86. package/dist/storage/snapshot.js +36 -37
  87. package/dist/storage/toolkit/extents.js +444 -520
  88. package/dist/storage/toolkit/index.js +28 -29
  89. package/dist/storage/toolkit/record-core.js +5792 -6377
  90. package/dist/storage/toolkit/sync-file.js +34 -42
  91. package/dist/storage/toolkit/wal.js +92 -127
  92. package/dist/storage/toolkit/wire.js +232 -256
  93. package/dist/storage/types.js +2952 -3228
  94. package/dist/testing/block-store-conformance.js +1556 -1629
  95. package/dist/testing/index.js +310 -291
  96. package/dist/testing/opfs-shim.js +280 -312
  97. package/dist/testing/simulator.js +496 -534
  98. package/dist/testing/sqllogictest.js +425 -365
  99. package/dist/transactions/index.js +1464 -1712
  100. package/dist/worker-protocol/index.js +70 -69
  101. package/package.json +20 -2
  102. package/postgres-feature-profile.json +15 -5
  103. package/sql-feature-matrix.json +252 -2
@@ -1,293 +1,312 @@
1
- export const faultPoints = [
2
- "beforeBlockWrite",
3
- "afterBlockWrite",
4
- "beforeBlockRead",
5
- "afterBlockRead",
6
- "beforeTransactionCommit",
7
- "afterTransactionCommit",
1
+ const faultPoints = [
2
+ "beforeBlockWrite",
3
+ "afterBlockWrite",
4
+ "beforeBlockRead",
5
+ "afterBlockRead",
6
+ "beforeTransactionCommit",
7
+ "afterTransactionCommit"
8
8
  ];
9
- export class FaultInjectingBlockStore {
10
- inner;
11
- inject;
12
- constructor(inner, inject) {
13
- this.inner = inner;
14
- this.inject = inject;
15
- }
16
- getCatalogProbe() {
17
- return this.inner.getCatalogProbe();
18
- }
19
- beginTransaction(input) {
20
- return this.inner.beginTransaction(input);
21
- }
22
- async getBlock(id) {
23
- await this.inject("beforeBlockRead");
24
- const bytes = await this.inner.getBlock(id);
25
- await this.inject("afterBlockRead");
26
- return bytes;
27
- }
28
- async getBlocks(ids) {
29
- await this.inject("beforeBlockRead");
30
- const blocks = await this.inner.getBlocks(ids);
31
- await this.inject("afterBlockRead");
32
- return blocks;
33
- }
34
- async readManifestBlock(version, id) {
35
- await this.inject("beforeBlockRead");
36
- const bytes = await this.inner.readManifestBlock(version, id);
37
- await this.inject("afterBlockRead");
38
- return bytes;
39
- }
40
- hasManifestBlocks(version, ids) {
41
- return this.inner.hasManifestBlocks(version, ids);
42
- }
43
- addTable(record, options) {
44
- return this.inner.addTable(record, options);
45
- }
46
- getTable(id) {
47
- return this.inner.getTable(id);
48
- }
49
- getTableByName(name) {
50
- return this.inner.getTableByName(name);
51
- }
52
- listTables() {
53
- return this.inner.listTables();
54
- }
55
- updateTable(id, expectedRevision, update) {
56
- return this.inner.updateTable(id, expectedRevision, update);
57
- }
58
- removeTable(id, expectedRevision, options) {
59
- return this.inner.removeTable(id, expectedRevision, options);
60
- }
61
- dropTable(input) {
62
- return this.inner.dropTable(input);
63
- }
64
- dropTableColumn(input) {
65
- return this.inner.dropTableColumn(input);
66
- }
67
- getSegment(id) {
68
- return this.inner.getSegment(id);
69
- }
70
- listSegmentPage(afterId, limit) {
71
- return this.inner.listSegmentPage(afterId, limit);
72
- }
73
- listTableSegmentPage(tableId, afterId, limit) {
74
- return this.inner.listTableSegmentPage(tableId, afterId, limit);
75
- }
76
- removeAbortedSegment(id, expectedTransactionId) {
77
- return this.inner.removeAbortedSegment(id, expectedTransactionId);
78
- }
79
- adoptAbortedSegment(input) {
80
- return this.inner.adoptAbortedSegment(input);
81
- }
82
- reserveRowIds(tableId, count) {
83
- return this.inner.reserveRowIds(tableId, count);
84
- }
85
- reserveAutoIncrement(tableId, columnId, count, atLeast) {
86
- return this.inner.reserveAutoIncrement(tableId, columnId, count, atLeast);
87
- }
88
- writeFtsBase(tableId, columnId, input) {
89
- return this.inner.writeFtsBase(tableId, columnId, input);
90
- }
91
- beginFtsBaseBuild(input) {
92
- return this.inner.beginFtsBaseBuild(input);
93
- }
94
- renewFtsBaseBuild(input) {
95
- return this.inner.renewFtsBaseBuild(input);
96
- }
97
- writeFtsBaseBuildChunk(input) {
98
- return this.inner.writeFtsBaseBuildChunk(input);
99
- }
100
- finishFtsBaseBuild(input) {
101
- return this.inner.finishFtsBaseBuild(input);
102
- }
103
- abortFtsBaseBuild(input) {
104
- return this.inner.abortFtsBaseBuild(input);
105
- }
106
- removeFtsColumn(tableId, columnId) {
107
- return this.inner.removeFtsColumn(tableId, columnId);
108
- }
109
- readFtsCandidates(tableId, columnId, terms, upToVersion) {
110
- return this.inner.readFtsCandidates(tableId, columnId, terms, upToVersion);
111
- }
112
- readFtsPostings(tableId, columnId, upToVersion, maxRowIds, maxRetainedBytes) {
113
- return this.inner.readFtsPostings(tableId, columnId, upToVersion, maxRowIds, maxRetainedBytes);
114
- }
115
- getExistingUniqueKeys(tableId, keyTokens) {
116
- return this.inner.getExistingUniqueKeys(tableId, keyTokens);
117
- }
118
- beginUniqueKeyBuild(input) {
119
- return this.inner.beginUniqueKeyBuild(input);
120
- }
121
- getUniqueKeyBuild(buildId) {
122
- return this.inner.getUniqueKeyBuild(buildId);
123
- }
124
- renewUniqueKeyBuild(input) {
125
- return this.inner.renewUniqueKeyBuild(input);
126
- }
127
- appendUniqueKeyBuildChunk(input) {
128
- return this.inner.appendUniqueKeyBuildChunk(input);
129
- }
130
- finishUniqueKeyBuild(input) {
131
- return this.inner.finishUniqueKeyBuild(input);
132
- }
133
- abortUniqueKeyBuild(input) {
134
- return this.inner.abortUniqueKeyBuild(input);
135
- }
136
- getCurrentManifestVersion() {
137
- return this.inner.getCurrentManifestVersion();
138
- }
139
- getCurrentManifest() {
140
- return this.inner.getCurrentManifest();
141
- }
142
- getManifest(version) {
143
- return this.inner.getManifest(version);
144
- }
145
- listManifestBlockPage(input) {
146
- return this.inner.listManifestBlockPage(input);
147
- }
148
- listRetiredManifestBlockPage(input) {
149
- return this.inner.listRetiredManifestBlockPage(input);
150
- }
151
- listManifestPage(afterVersion, limit) {
152
- return this.inner.listManifestPage(afterVersion, limit);
153
- }
154
- createTransaction(record) {
155
- return this.inner.createTransaction(record);
156
- }
157
- getTransaction(id) {
158
- return this.inner.getTransaction(id);
159
- }
160
- getTransactions(ids) {
161
- return this.inner.getTransactions(ids);
162
- }
163
- listTransactionPage(afterId, limit) {
164
- return this.inner.listTransactionPage(afterId, limit);
165
- }
166
- updateTransaction(id, expectedRevision, update) {
167
- return this.inner.updateTransaction(id, expectedRevision, update);
168
- }
169
- renewTransaction(input) {
170
- return this.inner.renewTransaction(input);
171
- }
172
- abortTransactionIfExpired(input) {
173
- return this.inner.abortTransactionIfExpired(input);
174
- }
175
- async stageTransactionArtifacts(input) {
176
- await this.inject("beforeBlockWrite");
177
- const transaction = await this.inner.stageTransactionArtifacts(input);
178
- await this.inject("afterBlockWrite");
179
- return transaction;
180
- }
181
- rollbackTransactionArtifacts(input) {
182
- return this.inner.rollbackTransactionArtifacts(input);
183
- }
184
- async commitTransaction(input) {
185
- await this.inject("beforeTransactionCommit");
186
- const manifest = await this.inner.commitTransaction(input);
187
- await this.inject("afterTransactionCommit");
188
- return manifest;
189
- }
190
- createLease(record) {
191
- return this.inner.createLease(record);
192
- }
193
- getLease(id) {
194
- return this.inner.getLease(id);
195
- }
196
- listLeases() {
197
- return this.inner.listLeases();
198
- }
199
- listExpiredLeasePage(expiresAtCutoff, afterCursor, limit) {
200
- return this.inner.listExpiredLeasePage(expiresAtCutoff, afterCursor, limit);
201
- }
202
- renewLease(input) {
203
- return this.inner.renewLease(input);
204
- }
205
- removeLeaseIfExpired(id, expectedRevision, expiresAtCutoff) {
206
- return this.inner.removeLeaseIfExpired(id, expectedRevision, expiresAtCutoff);
207
- }
208
- removeLease(input) {
209
- return this.inner.removeLease(input);
210
- }
211
- createCompactionJob(record) {
212
- return this.inner.createCompactionJob(record);
213
- }
214
- getCompactionJob(id) {
215
- return this.inner.getCompactionJob(id);
216
- }
217
- listCompactionJobs(tableId) {
218
- return this.inner.listCompactionJobs(tableId);
219
- }
220
- listCompactionJobPage(afterId, limit) {
221
- return this.inner.listCompactionJobPage(afterId, limit);
222
- }
223
- updateCompactionJob(id, expectedRevision, update) {
224
- return this.inner.updateCompactionJob(id, expectedRevision, update);
225
- }
226
- cancelCompactionJob(id, expectedRevision, cancelledAt) {
227
- return this.inner.cancelCompactionJob(id, expectedRevision, cancelledAt);
228
- }
229
- removeCompactionJob(id) {
230
- return this.inner.removeCompactionJob(id);
231
- }
232
- createGarbageCollectionJob(input) {
233
- return this.inner.createGarbageCollectionJob(input);
234
- }
235
- updateGarbageCollectionPlanning(input) {
236
- return this.inner.updateGarbageCollectionPlanning(input);
237
- }
238
- getGarbageCollectionJob(id) {
239
- return this.inner.getGarbageCollectionJob(id);
240
- }
241
- listGarbageCollectionJobs() {
242
- return this.inner.listGarbageCollectionJobs();
243
- }
244
- listGarbageCollectionJobPage(afterId, limit) {
245
- return this.inner.listGarbageCollectionJobPage(afterId, limit);
246
- }
247
- runGarbageCollectionStep(input) {
248
- return this.inner.runGarbageCollectionStep(input);
249
- }
250
- removePrunedManifestRecords(maxItems) {
251
- return this.inner.removePrunedManifestRecords(maxItems);
252
- }
253
- removeGarbageCollectionJob(id) {
254
- return this.inner.removeGarbageCollectionJob(id);
255
- }
256
- putTempRunPage(page) {
257
- return this.inner.putTempRunPage(page);
258
- }
259
- getTempRunPage(ownerId, runId, pageIndex) {
260
- return this.inner.getTempRunPage(ownerId, runId, pageIndex);
261
- }
262
- removeTempRun(ownerId, runId) {
263
- return this.inner.removeTempRun(ownerId, runId);
264
- }
265
- removeTempOwner(ownerId) {
266
- return this.inner.removeTempOwner(ownerId);
267
- }
268
- createTempOwner(record) {
269
- return this.inner.createTempOwner(record);
270
- }
271
- getTempOwner(ownerId) {
272
- return this.inner.getTempOwner(ownerId);
273
- }
274
- renewTempOwner(input) {
275
- return this.inner.renewTempOwner(input);
276
- }
277
- removeTempOwnerIfExpired(ownerId, expiresAtCutoff) {
278
- return this.inner.removeTempOwnerIfExpired(ownerId, expiresAtCutoff);
279
- }
280
- listTempOwnerIdsPage(afterOwnerId, limit) {
281
- return this.inner.listTempOwnerIdsPage(afterOwnerId, limit);
282
- }
283
- listExpiredTempOwnerPage(expiresAtCutoff, afterCursor, limit) {
284
- return this.inner.listExpiredTempOwnerPage(expiresAtCutoff, afterCursor, limit);
285
- }
286
- close() {
287
- this.inner.close();
288
- }
9
+ class FaultInjectingBlockStore {
10
+ inner;
11
+ inject;
12
+ constructor(inner, inject) {
13
+ this.inner = inner;
14
+ this.inject = inject;
15
+ }
16
+ getCatalogProbe() {
17
+ return this.inner.getCatalogProbe();
18
+ }
19
+ beginTransaction(input) {
20
+ return this.inner.beginTransaction(input);
21
+ }
22
+ async getBlock(id) {
23
+ await this.inject("beforeBlockRead");
24
+ const bytes = await this.inner.getBlock(id);
25
+ await this.inject("afterBlockRead");
26
+ return bytes;
27
+ }
28
+ async getBlocks(ids) {
29
+ await this.inject("beforeBlockRead");
30
+ const blocks = await this.inner.getBlocks(ids);
31
+ await this.inject("afterBlockRead");
32
+ return blocks;
33
+ }
34
+ async readManifestBlock(version, id) {
35
+ await this.inject("beforeBlockRead");
36
+ const bytes = await this.inner.readManifestBlock(version, id);
37
+ await this.inject("afterBlockRead");
38
+ return bytes;
39
+ }
40
+ hasManifestBlocks(version, ids) {
41
+ return this.inner.hasManifestBlocks(version, ids);
42
+ }
43
+ addTable(record, options) {
44
+ return this.inner.addTable(record, options);
45
+ }
46
+ getTable(id) {
47
+ return this.inner.getTable(id);
48
+ }
49
+ getTableByName(name) {
50
+ return this.inner.getTableByName(name);
51
+ }
52
+ listTables() {
53
+ return this.inner.listTables();
54
+ }
55
+ updateTable(id, expectedRevision, update) {
56
+ return this.inner.updateTable(id, expectedRevision, update);
57
+ }
58
+ removeTable(id, expectedRevision, options) {
59
+ return this.inner.removeTable(id, expectedRevision, options);
60
+ }
61
+ dropTable(input) {
62
+ return this.inner.dropTable(input);
63
+ }
64
+ dropTableColumn(input) {
65
+ return this.inner.dropTableColumn(input);
66
+ }
67
+ getSegment(id) {
68
+ return this.inner.getSegment(id);
69
+ }
70
+ listSegmentPage(afterId, limit) {
71
+ return this.inner.listSegmentPage(afterId, limit);
72
+ }
73
+ listTableSegmentPage(tableId, afterId, limit) {
74
+ return this.inner.listTableSegmentPage(tableId, afterId, limit);
75
+ }
76
+ removeAbortedSegment(id, expectedTransactionId) {
77
+ return this.inner.removeAbortedSegment(id, expectedTransactionId);
78
+ }
79
+ adoptAbortedSegment(input) {
80
+ return this.inner.adoptAbortedSegment(input);
81
+ }
82
+ reserveRowIds(tableId, count) {
83
+ return this.inner.reserveRowIds(tableId, count);
84
+ }
85
+ reserveAutoIncrement(tableId, columnId, count, atLeast) {
86
+ return this.inner.reserveAutoIncrement(tableId, columnId, count, atLeast);
87
+ }
88
+ writeFtsBase(tableId, columnId, input) {
89
+ return this.inner.writeFtsBase(tableId, columnId, input);
90
+ }
91
+ beginFtsBaseBuild(input) {
92
+ return this.inner.beginFtsBaseBuild(input);
93
+ }
94
+ renewFtsBaseBuild(input) {
95
+ return this.inner.renewFtsBaseBuild(input);
96
+ }
97
+ writeFtsBaseBuildChunk(input) {
98
+ return this.inner.writeFtsBaseBuildChunk(input);
99
+ }
100
+ finishFtsBaseBuild(input) {
101
+ return this.inner.finishFtsBaseBuild(input);
102
+ }
103
+ abortFtsBaseBuild(input) {
104
+ return this.inner.abortFtsBaseBuild(input);
105
+ }
106
+ removeFtsColumn(tableId, columnId) {
107
+ return this.inner.removeFtsColumn(tableId, columnId);
108
+ }
109
+ readFtsCandidates(tableId, columnId, terms, upToVersion) {
110
+ return this.inner.readFtsCandidates(tableId, columnId, terms, upToVersion);
111
+ }
112
+ readFtsPostings(tableId, columnId, upToVersion, maxRowIds, maxRetainedBytes) {
113
+ return this.inner.readFtsPostings(tableId, columnId, upToVersion, maxRowIds, maxRetainedBytes);
114
+ }
115
+ getExistingUniqueKeys(tableId, keyTokens) {
116
+ return this.inner.getExistingUniqueKeys(tableId, keyTokens);
117
+ }
118
+ beginUniqueKeyBuild(input) {
119
+ return this.inner.beginUniqueKeyBuild(input);
120
+ }
121
+ getUniqueKeyBuild(buildId) {
122
+ return this.inner.getUniqueKeyBuild(buildId);
123
+ }
124
+ renewUniqueKeyBuild(input) {
125
+ return this.inner.renewUniqueKeyBuild(input);
126
+ }
127
+ appendUniqueKeyBuildChunk(input) {
128
+ return this.inner.appendUniqueKeyBuildChunk(input);
129
+ }
130
+ finishUniqueKeyBuild(input) {
131
+ return this.inner.finishUniqueKeyBuild(input);
132
+ }
133
+ abortUniqueKeyBuild(input) {
134
+ return this.inner.abortUniqueKeyBuild(input);
135
+ }
136
+ getCurrentManifestVersion() {
137
+ return this.inner.getCurrentManifestVersion();
138
+ }
139
+ getCurrentManifest() {
140
+ return this.inner.getCurrentManifest();
141
+ }
142
+ getManifest(version) {
143
+ return this.inner.getManifest(version);
144
+ }
145
+ listManifestBlockPage(input) {
146
+ return this.inner.listManifestBlockPage(input);
147
+ }
148
+ listRetiredManifestBlockPage(input) {
149
+ return this.inner.listRetiredManifestBlockPage(input);
150
+ }
151
+ listManifestPage(afterVersion, limit) {
152
+ return this.inner.listManifestPage(afterVersion, limit);
153
+ }
154
+ createTransaction(record) {
155
+ return this.inner.createTransaction(record);
156
+ }
157
+ getTransaction(id) {
158
+ return this.inner.getTransaction(id);
159
+ }
160
+ getTransactions(ids) {
161
+ return this.inner.getTransactions(ids);
162
+ }
163
+ listTransactionPage(afterId, limit) {
164
+ return this.inner.listTransactionPage(afterId, limit);
165
+ }
166
+ updateTransaction(id, expectedRevision, update) {
167
+ return this.inner.updateTransaction(id, expectedRevision, update);
168
+ }
169
+ renewTransaction(input) {
170
+ return this.inner.renewTransaction(input);
171
+ }
172
+ abortTransactionIfExpired(input) {
173
+ return this.inner.abortTransactionIfExpired(input);
174
+ }
175
+ async stageTransactionArtifacts(input) {
176
+ await this.inject("beforeBlockWrite");
177
+ const transaction = await this.inner.stageTransactionArtifacts(input);
178
+ await this.inject("afterBlockWrite");
179
+ return transaction;
180
+ }
181
+ rollbackTransactionArtifacts(input) {
182
+ return this.inner.rollbackTransactionArtifacts(input);
183
+ }
184
+ async commitTransaction(input) {
185
+ await this.inject("beforeTransactionCommit");
186
+ const manifest = await this.inner.commitTransaction(input);
187
+ await this.inject("afterTransactionCommit");
188
+ return manifest;
189
+ }
190
+ createLease(record) {
191
+ return this.inner.createLease(record);
192
+ }
193
+ getLease(id) {
194
+ return this.inner.getLease(id);
195
+ }
196
+ listLeases() {
197
+ return this.inner.listLeases();
198
+ }
199
+ listExpiredLeasePage(expiresAtCutoff, afterCursor, limit) {
200
+ return this.inner.listExpiredLeasePage(expiresAtCutoff, afterCursor, limit);
201
+ }
202
+ renewLease(input) {
203
+ return this.inner.renewLease(input);
204
+ }
205
+ removeLeaseIfExpired(id, expectedRevision, expiresAtCutoff) {
206
+ return this.inner.removeLeaseIfExpired(id, expectedRevision, expiresAtCutoff);
207
+ }
208
+ removeLease(input) {
209
+ return this.inner.removeLease(input);
210
+ }
211
+ createCompactionJob(record) {
212
+ return this.inner.createCompactionJob(record);
213
+ }
214
+ getCompactionJob(id) {
215
+ return this.inner.getCompactionJob(id);
216
+ }
217
+ listCompactionJobs(tableId) {
218
+ return this.inner.listCompactionJobs(tableId);
219
+ }
220
+ listCompactionJobPage(afterId, limit) {
221
+ return this.inner.listCompactionJobPage(afterId, limit);
222
+ }
223
+ updateCompactionJob(id, expectedRevision, update) {
224
+ return this.inner.updateCompactionJob(id, expectedRevision, update);
225
+ }
226
+ cancelCompactionJob(id, expectedRevision, cancelledAt) {
227
+ return this.inner.cancelCompactionJob(id, expectedRevision, cancelledAt);
228
+ }
229
+ removeCompactionJob(id) {
230
+ return this.inner.removeCompactionJob(id);
231
+ }
232
+ createGarbageCollectionJob(input) {
233
+ return this.inner.createGarbageCollectionJob(input);
234
+ }
235
+ updateGarbageCollectionPlanning(input) {
236
+ return this.inner.updateGarbageCollectionPlanning(input);
237
+ }
238
+ getGarbageCollectionJob(id) {
239
+ return this.inner.getGarbageCollectionJob(id);
240
+ }
241
+ listGarbageCollectionJobs() {
242
+ return this.inner.listGarbageCollectionJobs();
243
+ }
244
+ listGarbageCollectionJobPage(afterId, limit) {
245
+ return this.inner.listGarbageCollectionJobPage(afterId, limit);
246
+ }
247
+ runGarbageCollectionStep(input) {
248
+ return this.inner.runGarbageCollectionStep(input);
249
+ }
250
+ removePrunedManifestRecords(maxItems) {
251
+ return this.inner.removePrunedManifestRecords(maxItems);
252
+ }
253
+ removeGarbageCollectionJob(id) {
254
+ return this.inner.removeGarbageCollectionJob(id);
255
+ }
256
+ putTempRunPage(page) {
257
+ return this.inner.putTempRunPage(page);
258
+ }
259
+ getTempRunPage(ownerId, runId, pageIndex) {
260
+ return this.inner.getTempRunPage(ownerId, runId, pageIndex);
261
+ }
262
+ removeTempRun(ownerId, runId) {
263
+ return this.inner.removeTempRun(ownerId, runId);
264
+ }
265
+ removeTempOwner(ownerId) {
266
+ return this.inner.removeTempOwner(ownerId);
267
+ }
268
+ createTempOwner(record) {
269
+ return this.inner.createTempOwner(record);
270
+ }
271
+ getTempOwner(ownerId) {
272
+ return this.inner.getTempOwner(ownerId);
273
+ }
274
+ renewTempOwner(input) {
275
+ return this.inner.renewTempOwner(input);
276
+ }
277
+ removeTempOwnerIfExpired(ownerId, expiresAtCutoff) {
278
+ return this.inner.removeTempOwnerIfExpired(ownerId, expiresAtCutoff);
279
+ }
280
+ listTempOwnerIdsPage(afterOwnerId, limit) {
281
+ return this.inner.listTempOwnerIdsPage(afterOwnerId, limit);
282
+ }
283
+ listExpiredTempOwnerPage(expiresAtCutoff, afterCursor, limit) {
284
+ return this.inner.listExpiredTempOwnerPage(expiresAtCutoff, afterCursor, limit);
285
+ }
286
+ close() {
287
+ this.inner.close();
288
+ }
289
289
  }
290
- export { blockStoreConformanceCases, runBlockStoreConformance, } from "./block-store-conformance.js";
291
- export { MemoryOpfs } from "./opfs-shim.js";
292
- export { DeterministicScheduler, generateSimulationPlan, parseSimulationPlan, runSimulation, scheduledBlockStore, } from "./simulator.js";
293
- export { SqlLogicFailure, SqlLogicParseError, md5Hex, parseSqlLogicTest, parseSqlLogicTestLines, renderSqlLogicValue, runSqlLogicTest, } from "./sqllogictest.js";
290
+ import { blockStoreConformanceCases, runBlockStoreConformance } from "./block-store-conformance.js";
291
+ import { MemoryOpfs } from "./opfs-shim.js";
292
+ import { DeterministicScheduler, generateSimulationPlan, parseSimulationPlan, runSimulation, scheduledBlockStore } from "./simulator.js";
293
+ import { SqlLogicFailure, SqlLogicParseError, md5Hex, parseSqlLogicTest, parseSqlLogicTestLines, renderSqlLogicValue, runSqlLogicTest } from "./sqllogictest.js";
294
+ export {
295
+ DeterministicScheduler,
296
+ FaultInjectingBlockStore,
297
+ MemoryOpfs,
298
+ SqlLogicFailure,
299
+ SqlLogicParseError,
300
+ blockStoreConformanceCases,
301
+ faultPoints,
302
+ generateSimulationPlan,
303
+ md5Hex,
304
+ parseSimulationPlan,
305
+ parseSqlLogicTest,
306
+ parseSqlLogicTestLines,
307
+ renderSqlLogicValue,
308
+ runBlockStoreConformance,
309
+ runSimulation,
310
+ runSqlLogicTest,
311
+ scheduledBlockStore
312
+ };