@tinyshed/tinystore 0.5.0 → 0.6.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/dist/config.d.ts +46 -1
- package/dist/config.js +94 -7
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/kv.js +98 -90
- package/dist/logger.d.ts +10 -0
- package/dist/logger.js +16 -6
- package/dist/metrics.d.ts +17 -0
- package/dist/metrics.js +22 -1
- package/dist/records.d.ts +90 -5
- package/dist/records.js +114 -6
- package/dist/runtime/addon.js +51 -41
- package/dist/runtime/pipe.js +116 -87
- package/dist/sql.d.ts +19 -3
- package/dist/sql.js +31 -4
- package/dist/wire/protocol.d.ts +105 -9
- package/dist/wire/protocol.js +296 -8
- package/package.json +8 -8
- package/src/config.ts +147 -17
- package/src/index.ts +12 -1
- package/src/kv.ts +108 -98
- package/src/logger.ts +17 -7
- package/src/metrics.ts +25 -0
- package/src/records.ts +178 -7
- package/src/runtime/addon.ts +52 -41
- package/src/runtime/pipe.ts +136 -104
- package/src/sql.ts +48 -7
- package/src/wire/protocol.ts +321 -8
package/dist/sql.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { type Home, type Open, type Via } from './handles.ts';
|
|
|
5
5
|
import { Adding, type Queue, type QueueOptions, type TxQueue, type Worker } from './jobs.ts';
|
|
6
6
|
import { Bucket, type BucketOptions } from './kv.ts';
|
|
7
7
|
import { Table, type TableOptions } from './query.ts';
|
|
8
|
+
import { Appending, Events, type EventsOptions, TxEvents } from './records.ts';
|
|
8
9
|
import type { StandardSchemaV1 } from './schema.ts';
|
|
9
10
|
import { TableIndex, type TableIndexOptions } from './search.ts';
|
|
10
11
|
import { type Stream } from './session.ts';
|
|
@@ -181,6 +182,18 @@ export declare class Database implements Runner, Home {
|
|
|
181
182
|
* const packages = db.files('packages', { maxFileSize: '10MiB' })
|
|
182
183
|
*/
|
|
183
184
|
files(name: string, options?: FilesOptions): Files;
|
|
185
|
+
/**
|
|
186
|
+
* The store's stream of events `stream`, opened through this database:
|
|
187
|
+
* the same calls and reads as `store.events(stream)` gives, the stream in
|
|
188
|
+
* records.db where every stream lives. Its appends inside `db.tx`,
|
|
189
|
+
* through `tx.with(audit)`, and in `db.batch`, through `audit.appending`,
|
|
190
|
+
* are kept in this database's file with the rows and reach the stream
|
|
191
|
+
* once they commit, before the call returns: an event exists exactly when
|
|
192
|
+
* the change it records does.
|
|
193
|
+
*
|
|
194
|
+
* const audit = db.events('audit')
|
|
195
|
+
*/
|
|
196
|
+
events(stream: string, options?: EventsOptions): Events;
|
|
184
197
|
/**
|
|
185
198
|
* An index of a table of this database, kept in its file: its rows found
|
|
186
199
|
* again by their words, vectors or both, each hit's value its row as
|
|
@@ -228,12 +241,14 @@ export declare class Database implements Runner, Home {
|
|
|
228
241
|
/**
|
|
229
242
|
* Writes known before they run, written as one: all of them or none, in a
|
|
230
243
|
* shared commit, and what each did, in their order. A write is a statement,
|
|
231
|
-
*
|
|
232
|
-
* commits with the rows and changed 1 job, or 0 when its id was taken
|
|
244
|
+
* a job's add of a queue opened from the database, `queue.adding`, which
|
|
245
|
+
* commits with the rows and changed 1 job, or 0 when its id was taken, or
|
|
246
|
+
* an event's append of a stream opened from it, `audit.appending`, which
|
|
247
|
+
* reaches the stream before the batch returns.
|
|
233
248
|
*
|
|
234
249
|
* await db.batch([sql`update notes set body = ${body} where id = ${id}`, indexing.adding({ noteId: id })])
|
|
235
250
|
*/
|
|
236
|
-
batch(writes: readonly (Sql | Adding)[]): Promise<Done[]>;
|
|
251
|
+
batch(writes: readonly (Sql | Adding | Appending)[]): Promise<Done[]>;
|
|
237
252
|
/**
|
|
238
253
|
* Runs fn in a transaction that holds the writer, for writes that depend on
|
|
239
254
|
* what its reads found: returning commits, a throw rolls back. It runs
|
|
@@ -277,6 +292,7 @@ export declare class SqlTx implements Runner {
|
|
|
277
292
|
with<T>(queue: Queue<T>): TxQueue<T>;
|
|
278
293
|
with<T>(channel: Channel<T>): TxChannel<T>;
|
|
279
294
|
with(files: Files): Files;
|
|
295
|
+
with(events: Events): TxEvents;
|
|
280
296
|
all<T = Row>(...statement: Statement): Promise<T[]>;
|
|
281
297
|
one<T = Row>(...statement: Statement): Promise<T | undefined>;
|
|
282
298
|
scalar<T = SqlValue>(...statement: Statement): Promise<T>;
|
package/dist/sql.js
CHANGED
|
@@ -14,6 +14,7 @@ import { askByCall, checkName, handleOn, viaLink, } from './handles.js';
|
|
|
14
14
|
import { Adding, addingIn, openQueue, queueParts, queueVia, } from './jobs.js';
|
|
15
15
|
import { Bucket, bucketOpen, partsOf, valuesOf } from './kv.js';
|
|
16
16
|
import { Table } from './query.js';
|
|
17
|
+
import { Appending, appendingIn, Events, eventsOpen, eventsParts, TxEvents, } from './records.js';
|
|
17
18
|
import { TableIndex, tableIndexOpen } from './search.js';
|
|
18
19
|
import { ConnectionLostError } from './session.js';
|
|
19
20
|
import { int64Of } from './wire/msgpack.js';
|
|
@@ -560,6 +561,22 @@ export class Database {
|
|
|
560
561
|
const open = this.keep(methods['blobs.open'], bytes, async (connection) => filesOpen(name, options, await this.handle(connection)));
|
|
561
562
|
return new Files(this.#link, name, open, [], this);
|
|
562
563
|
}
|
|
564
|
+
/**
|
|
565
|
+
* The store's stream of events `stream`, opened through this database:
|
|
566
|
+
* the same calls and reads as `store.events(stream)` gives, the stream in
|
|
567
|
+
* records.db where every stream lives. Its appends inside `db.tx`,
|
|
568
|
+
* through `tx.with(audit)`, and in `db.batch`, through `audit.appending`,
|
|
569
|
+
* are kept in this database's file with the rows and reach the stream
|
|
570
|
+
* once they commit, before the call returns: an event exists exactly when
|
|
571
|
+
* the change it records does.
|
|
572
|
+
*
|
|
573
|
+
* const audit = db.events('audit')
|
|
574
|
+
*/
|
|
575
|
+
events(stream, options) {
|
|
576
|
+
const bytes = eventsOpen(stream, options);
|
|
577
|
+
const open = this.keep(methods['records.open'], bytes, async (connection) => eventsOpen(stream, options, await this.handle(connection)));
|
|
578
|
+
return new Events(this.#link, stream, open, this);
|
|
579
|
+
}
|
|
563
580
|
/**
|
|
564
581
|
* An index of a table of this database, kept in its file: its rows found
|
|
565
582
|
* again by their words, vectors or both, each hit's value its row as
|
|
@@ -652,8 +669,10 @@ export class Database {
|
|
|
652
669
|
/**
|
|
653
670
|
* Writes known before they run, written as one: all of them or none, in a
|
|
654
671
|
* shared commit, and what each did, in their order. A write is a statement,
|
|
655
|
-
*
|
|
656
|
-
* commits with the rows and changed 1 job, or 0 when its id was taken
|
|
672
|
+
* a job's add of a queue opened from the database, `queue.adding`, which
|
|
673
|
+
* commits with the rows and changed 1 job, or 0 when its id was taken, or
|
|
674
|
+
* an event's append of a stream opened from it, `audit.appending`, which
|
|
675
|
+
* reaches the stream before the batch returns.
|
|
657
676
|
*
|
|
658
677
|
* await db.batch([sql`update notes set body = ${body} where id = ${id}`, indexing.adding({ noteId: id })])
|
|
659
678
|
*/
|
|
@@ -665,7 +684,10 @@ export class Database {
|
|
|
665
684
|
if (each instanceof Adding) {
|
|
666
685
|
return addingIn(each, this);
|
|
667
686
|
}
|
|
668
|
-
|
|
687
|
+
if (each instanceof Appending) {
|
|
688
|
+
return appendingIn(each, this);
|
|
689
|
+
}
|
|
690
|
+
throw new InvalidError("a batch takes pieces of SQL, sql`…`, a queue's adding and a stream's appending");
|
|
669
691
|
});
|
|
670
692
|
this.#refuseAround('a batch');
|
|
671
693
|
const answered = await this.#link.run('write', async (connection) => {
|
|
@@ -806,7 +828,12 @@ export class SqlTx {
|
|
|
806
828
|
this.#takes(files.home, files.open, `files ${files.name}`);
|
|
807
829
|
return files.inside(this.#via);
|
|
808
830
|
}
|
|
809
|
-
|
|
831
|
+
const events = eventsParts(handle);
|
|
832
|
+
if (events !== undefined) {
|
|
833
|
+
this.#takes(events.home, events.open, `events ${events.stream}`);
|
|
834
|
+
return new TxEvents(events, this.#via);
|
|
835
|
+
}
|
|
836
|
+
throw new InvalidError(`${this.describe}: a transaction takes in a bucket, a queue, files or events opened from its database`);
|
|
810
837
|
}
|
|
811
838
|
async all(...statement) {
|
|
812
839
|
return all(this, statementOf(statement));
|
package/dist/wire/protocol.d.ts
CHANGED
|
@@ -105,6 +105,11 @@ export declare const methods: {
|
|
|
105
105
|
* nothing written and lets go of what came.
|
|
106
106
|
*/
|
|
107
107
|
readonly 'metrics.uploadPrometheus': 1552;
|
|
108
|
+
/**
|
|
109
|
+
* A gauge's range replaced in one write: a read sees it as it was or as it
|
|
110
|
+
* is, never half; the same samples sent again write nothing.
|
|
111
|
+
*/
|
|
112
|
+
readonly 'metrics.replace': 1553;
|
|
108
113
|
readonly 'records.open': 1281;
|
|
109
114
|
readonly 'records.append': 1282;
|
|
110
115
|
readonly 'records.list': 1283;
|
|
@@ -118,6 +123,7 @@ export declare const methods: {
|
|
|
118
123
|
readonly 'records.lines': 1291;
|
|
119
124
|
readonly 'records.damaged': 1292;
|
|
120
125
|
readonly 'records.drop': 1293;
|
|
126
|
+
readonly 'records.fields': 1294;
|
|
121
127
|
readonly 'search.open': 2817;
|
|
122
128
|
readonly 'search.set': 2818;
|
|
123
129
|
readonly 'search.setMany': 2819;
|
|
@@ -1605,6 +1611,28 @@ export declare const MetricsIngest: import("./codec.ts").Message<{
|
|
|
1605
1611
|
readonly keep: readonly [6, import("./codec.ts").Codec<number, number>];
|
|
1606
1612
|
}>[]>];
|
|
1607
1613
|
}>;
|
|
1614
|
+
/**
|
|
1615
|
+
* A gauge's samples of from to to, packed or not, replaced by the series'
|
|
1616
|
+
* own: a time given takes its value, a time not there before is added, and a
|
|
1617
|
+
* time the series does not give goes.
|
|
1618
|
+
*/
|
|
1619
|
+
export declare const MetricsReplace: import("./codec.ts").Message<{
|
|
1620
|
+
readonly series: readonly [1, import("./codec.ts").Message<{
|
|
1621
|
+
readonly name: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
1622
|
+
/** gauge, counter or histogram */
|
|
1623
|
+
readonly kind: readonly [2, import("./codec.ts").Codec<string, string>];
|
|
1624
|
+
readonly labels: readonly [3, import("./codec.ts").Codec<Record<string, string>, Record<string, string>>];
|
|
1625
|
+
/** an int64 a sample */
|
|
1626
|
+
readonly times: readonly [4, import("./codec.ts").Codec<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>];
|
|
1627
|
+
/** a float64 a sample */
|
|
1628
|
+
readonly values: readonly [5, import("./codec.ts").Codec<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>];
|
|
1629
|
+
/** how long the name's samples stay: its own, kept in the file */
|
|
1630
|
+
readonly keep: readonly [6, import("./codec.ts").Codec<number, number>];
|
|
1631
|
+
}>];
|
|
1632
|
+
readonly from: readonly [2, import("./codec.ts").Codec<number, number>];
|
|
1633
|
+
/** excluded */
|
|
1634
|
+
readonly to: readonly [3, import("./codec.ts").Codec<number, number>];
|
|
1635
|
+
}>;
|
|
1608
1636
|
/**
|
|
1609
1637
|
* A text an exporter serves, in Prometheus' format or OpenMetrics', whose
|
|
1610
1638
|
* series the store writes every one or none, each with labels beside its own.
|
|
@@ -1877,13 +1905,19 @@ export declare const MetricsAck: import("./codec.ts").Message<{
|
|
|
1877
1905
|
}>[]>];
|
|
1878
1906
|
}>;
|
|
1879
1907
|
/**
|
|
1880
|
-
* Opens a stream of events by name, made with its first event.
|
|
1908
|
+
* Opens a stream of events by name, made with its first event. Opened
|
|
1909
|
+
* through a database, the stream is records.db's all the same, and its
|
|
1910
|
+
* appends inside the database's transactions and batches are kept in the
|
|
1911
|
+
* database's file until they commit, then written to the stream before the
|
|
1912
|
+
* transaction or the batch answers.
|
|
1881
1913
|
*/
|
|
1882
1914
|
export declare const RecordsOpen: import("./codec.ts").Message<{
|
|
1883
1915
|
/** [a-z0-9][a-z0-9_-]{0,63} */
|
|
1884
1916
|
readonly stream: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
1885
1917
|
/** how long it keeps its events: its own, kept in the file */
|
|
1886
1918
|
readonly keep: readonly [2, import("./codec.ts").Codec<number, number>];
|
|
1919
|
+
/** a database's handle: its appends join its transactions and batches; none when absent */
|
|
1920
|
+
readonly database: readonly [3, import("./codec.ts").Codec<number, number>];
|
|
1887
1921
|
}>;
|
|
1888
1922
|
/**
|
|
1889
1923
|
* An event to write.
|
|
@@ -2193,6 +2227,62 @@ export declare const RecordsStreams: import("./codec.ts").Message<{
|
|
|
2193
2227
|
readonly newest: readonly [4, import("./codec.ts").Codec<bigint, number | bigint>];
|
|
2194
2228
|
}>[]>];
|
|
2195
2229
|
}>;
|
|
2230
|
+
/**
|
|
2231
|
+
* What the events of a stream carry, counted as they are packed and from
|
|
2232
|
+
* what waits, none of it read from a packed event.
|
|
2233
|
+
*/
|
|
2234
|
+
export declare const RecordsFieldsAsked: import("./codec.ts").Message<{
|
|
2235
|
+
readonly stream: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2236
|
+
}>;
|
|
2237
|
+
export declare const RecordsNameCount: import("./codec.ts").Message<{
|
|
2238
|
+
readonly name: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2239
|
+
readonly count: readonly [2, import("./codec.ts").Codec<number, number>];
|
|
2240
|
+
}>;
|
|
2241
|
+
/**
|
|
2242
|
+
* A key of a stream's events' fields or contexts.
|
|
2243
|
+
*/
|
|
2244
|
+
export declare const RecordsFieldInfo: import("./codec.ts").Message<{
|
|
2245
|
+
readonly name: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2246
|
+
/** float, integer, text, bool, object, list or null, in that order */
|
|
2247
|
+
readonly kinds: readonly [2, import("./codec.ts").Codec<string[], readonly string[]>];
|
|
2248
|
+
/** the events that carry it */
|
|
2249
|
+
readonly count: readonly [3, import("./codec.ts").Codec<number, number>];
|
|
2250
|
+
}>;
|
|
2251
|
+
export declare const RecordsStreamFields: import("./codec.ts").Message<{
|
|
2252
|
+
readonly eventNames: readonly [1, import("./codec.ts").Codec<Read<{
|
|
2253
|
+
readonly name: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2254
|
+
readonly count: readonly [2, import("./codec.ts").Codec<number, number>];
|
|
2255
|
+
}>[], readonly import("./codec.ts").Written<{
|
|
2256
|
+
readonly name: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2257
|
+
readonly count: readonly [2, import("./codec.ts").Codec<number, number>];
|
|
2258
|
+
}>[]>];
|
|
2259
|
+
readonly fields: readonly [2, import("./codec.ts").Codec<Read<{
|
|
2260
|
+
readonly name: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2261
|
+
/** float, integer, text, bool, object, list or null, in that order */
|
|
2262
|
+
readonly kinds: readonly [2, import("./codec.ts").Codec<string[], readonly string[]>];
|
|
2263
|
+
/** the events that carry it */
|
|
2264
|
+
readonly count: readonly [3, import("./codec.ts").Codec<number, number>];
|
|
2265
|
+
}>[], readonly import("./codec.ts").Written<{
|
|
2266
|
+
readonly name: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2267
|
+
/** float, integer, text, bool, object, list or null, in that order */
|
|
2268
|
+
readonly kinds: readonly [2, import("./codec.ts").Codec<string[], readonly string[]>];
|
|
2269
|
+
/** the events that carry it */
|
|
2270
|
+
readonly count: readonly [3, import("./codec.ts").Codec<number, number>];
|
|
2271
|
+
}>[]>];
|
|
2272
|
+
readonly context: readonly [3, import("./codec.ts").Codec<Read<{
|
|
2273
|
+
readonly name: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2274
|
+
/** float, integer, text, bool, object, list or null, in that order */
|
|
2275
|
+
readonly kinds: readonly [2, import("./codec.ts").Codec<string[], readonly string[]>];
|
|
2276
|
+
/** the events that carry it */
|
|
2277
|
+
readonly count: readonly [3, import("./codec.ts").Codec<number, number>];
|
|
2278
|
+
}>[], readonly import("./codec.ts").Written<{
|
|
2279
|
+
readonly name: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2280
|
+
/** float, integer, text, bool, object, list or null, in that order */
|
|
2281
|
+
readonly kinds: readonly [2, import("./codec.ts").Codec<string[], readonly string[]>];
|
|
2282
|
+
/** the events that carry it */
|
|
2283
|
+
readonly count: readonly [3, import("./codec.ts").Codec<number, number>];
|
|
2284
|
+
}>[]>];
|
|
2285
|
+
}>;
|
|
2196
2286
|
/**
|
|
2197
2287
|
* The keys the events a query finds hold, sorted.
|
|
2198
2288
|
*/
|
|
@@ -2513,13 +2603,15 @@ export declare const SqlOpen: import("./codec.ts").Message<{
|
|
|
2513
2603
|
}>;
|
|
2514
2604
|
/**
|
|
2515
2605
|
* A statement's text and the values of its ?s, in order. In a batch it may
|
|
2516
|
-
* be a call of
|
|
2517
|
-
*
|
|
2606
|
+
* be a call of another engine instead, with its request in body and no
|
|
2607
|
+
* text, which commits with the batch's rows: jobs.add on a queue kept in the
|
|
2608
|
+
* database's file, or records.append on a stream opened through the
|
|
2609
|
+
* database, whose events reach the stream before the batch answers.
|
|
2518
2610
|
*/
|
|
2519
2611
|
export declare const SqlText: import("./codec.ts").Message<{
|
|
2520
2612
|
readonly text: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2521
2613
|
readonly values: readonly [2, import("./codec.ts").Codec<(boolean | SqlValue)[], readonly import("./codec.ts").SqlArg[]>];
|
|
2522
|
-
/** in a batch, jobs.add: the call in body */
|
|
2614
|
+
/** in a batch, jobs.add or records.append: the call in body */
|
|
2523
2615
|
readonly method: readonly [3, import("./codec.ts").Codec<number, number>];
|
|
2524
2616
|
readonly body: readonly [4, import("./codec.ts").Codec<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>];
|
|
2525
2617
|
}>;
|
|
@@ -2608,27 +2700,29 @@ export declare const SqlDone: import("./codec.ts").Message<{
|
|
|
2608
2700
|
}>;
|
|
2609
2701
|
/**
|
|
2610
2702
|
* Writes known before they run, written as one in a shared commit: its
|
|
2611
|
-
* statements,
|
|
2703
|
+
* statements, the adds of a queue kept in the database's file, and the
|
|
2704
|
+
* appends of a stream opened through the database.
|
|
2612
2705
|
*/
|
|
2613
2706
|
export declare const SqlBatch: import("./codec.ts").Message<{
|
|
2614
2707
|
readonly handle: readonly [1, import("./codec.ts").Codec<number, number>];
|
|
2615
2708
|
readonly statements: readonly [2, import("./codec.ts").Codec<Read<{
|
|
2616
2709
|
readonly text: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2617
2710
|
readonly values: readonly [2, import("./codec.ts").Codec<(boolean | SqlValue)[], readonly import("./codec.ts").SqlArg[]>];
|
|
2618
|
-
/** in a batch, jobs.add: the call in body */
|
|
2711
|
+
/** in a batch, jobs.add or records.append: the call in body */
|
|
2619
2712
|
readonly method: readonly [3, import("./codec.ts").Codec<number, number>];
|
|
2620
2713
|
readonly body: readonly [4, import("./codec.ts").Codec<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>];
|
|
2621
2714
|
}>[], readonly import("./codec.ts").Written<{
|
|
2622
2715
|
readonly text: readonly [1, import("./codec.ts").Codec<string, string>];
|
|
2623
2716
|
readonly values: readonly [2, import("./codec.ts").Codec<(boolean | SqlValue)[], readonly import("./codec.ts").SqlArg[]>];
|
|
2624
|
-
/** in a batch, jobs.add: the call in body */
|
|
2717
|
+
/** in a batch, jobs.add or records.append: the call in body */
|
|
2625
2718
|
readonly method: readonly [3, import("./codec.ts").Codec<number, number>];
|
|
2626
2719
|
readonly body: readonly [4, import("./codec.ts").Codec<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>];
|
|
2627
2720
|
}>[]>];
|
|
2628
2721
|
}>;
|
|
2629
2722
|
/**
|
|
2630
2723
|
* What each write of a batch did, in their order: a job's add changed one
|
|
2631
|
-
* job, or none when its id was taken
|
|
2724
|
+
* job, or none when its id was taken, and a stream's append the events its
|
|
2725
|
+
* stream holds no id of.
|
|
2632
2726
|
*/
|
|
2633
2727
|
export declare const SqlBatched: import("./codec.ts").Message<{
|
|
2634
2728
|
readonly done: readonly [1, import("./codec.ts").Codec<Read<{
|
|
@@ -2650,7 +2744,9 @@ export declare const SqlTxOpen: import("./codec.ts").Message<{
|
|
|
2650
2744
|
* A transaction's call, or its end: the last DATA commits, or not. A call is
|
|
2651
2745
|
* a statement, or a call of kv or jobs on a bucket or a queue kept in the
|
|
2652
2746
|
* database's file: a method of theirs with its request, kv.set or jobs.add,
|
|
2653
|
-
* which runs in the transaction.
|
|
2747
|
+
* which runs in the transaction; or records.append on a stream opened
|
|
2748
|
+
* through the database, whose events reach the stream once the transaction
|
|
2749
|
+
* commits, before its last DATA answers.
|
|
2654
2750
|
*/
|
|
2655
2751
|
export declare const SqlTxCall: import("./codec.ts").Message<{
|
|
2656
2752
|
readonly text: readonly [1, import("./codec.ts").Codec<string, string>];
|