@lunora/shard-engine 1.0.0-alpha.36 → 1.0.0-alpha.38
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/conformance/index.mjs +1 -1
- package/dist/index.d.mts +97 -7
- package/dist/index.d.ts +97 -7
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/ADMIN_FUNCTIONS-DZ5yKTXx.mjs +1 -0
- package/dist/packem_shared/CDC_LOG_TABLE-VfPoURHu.mjs +15 -0
- package/dist/packem_shared/DEFAULT_MAX_RELAYS-BPv7jVgK.mjs +1 -0
- package/dist/packem_shared/GlobalPollTick-BNK4o-XT.mjs +1 -0
- package/dist/packem_shared/NotUniqueError-C4DEsHec.mjs +1 -0
- package/dist/packem_shared/SHAPE_POKE_CURSOR_TABLE-BBuXXk5v.mjs +7 -0
- package/dist/packem_shared/ShapeDiffCache-mE7ZzdPr.mjs +1 -0
- package/dist/packem_shared/UNVOUCHABLE_DEP-C68htACn.mjs +1 -0
- package/dist/packem_shared/awaitWsDrain-CeaR5jj8.mjs +1 -0
- package/dist/packem_shared/backfillAggregateIndexes-DDgDYJcc.mjs +1 -0
- package/dist/packem_shared/buildPokeFrames-BhYUbqzO.mjs +1 -0
- package/dist/packem_shared/buildShapeDiff-umdBNFzJ.mjs +1 -0
- package/dist/packem_shared/createReplicaLink-DZZxDW5c.mjs +7 -0
- package/dist/packem_shared/ctx-db-relay-shapes-Jf5xpD1r.mjs +17 -0
- package/dist/packem_shared/{defineEngineContractSuite-iK4MwBOl.mjs → defineEngineContractSuite-C6NKOjJn.mjs} +1 -1
- package/dist/packem_shared/envOptionalPositiveInt-D2pY-c64.mjs +1 -0
- package/dist/packem_shared/{isSoftDeleted-DR79pnU-.mjs → isSoftDeleted-CZirzdQL.mjs} +1 -1
- package/dist/packem_shared/materializeExternalRows-DYE0rlxi.mjs +1 -0
- package/dist/packem_shared/runShardMigrations-C6JwX3Ie.mjs +5 -0
- package/dist/packem_shared/selectShapeMembers-GfRzwoVo.mjs +1 -0
- package/dist/packem_shared/sibling-channel-Cxvk0Zca.mjs +1 -0
- package/package.json +2 -2
- package/dist/packem_shared/ADMIN_FUNCTIONS-2mZJ-FQW.mjs +0 -1
- package/dist/packem_shared/CDC_LOG_TABLE-B58N8NQO.mjs +0 -8
- package/dist/packem_shared/DEFAULT_MAX_RELAYS-tuHNDUZr.mjs +0 -1
- package/dist/packem_shared/NotUniqueError-THUZXy3C.mjs +0 -1
- package/dist/packem_shared/SHAPE_POKE_CURSOR_TABLE-Dh4HfSdC.mjs +0 -7
- package/dist/packem_shared/awaitWsDrain-Cs-1HHP6.mjs +0 -1
- package/dist/packem_shared/backfillAggregateIndexes-DVQ2sVuV.mjs +0 -1
- package/dist/packem_shared/buildPokeFrames-BXejpiII.mjs +0 -1
- package/dist/packem_shared/createReadFootprint-MRH1If3F.mjs +0 -1
- package/dist/packem_shared/createReplicaLink-C1JuP_DN.mjs +0 -7
- package/dist/packem_shared/materializeExternalRows-D5tgL1mR.mjs +0 -1
- package/dist/packem_shared/runShardMigrations-DtIbA812.mjs +0 -5
- package/dist/packem_shared/selectShapeMemberIds-B-pQJHAu.mjs +0 -1
- package/dist/packem_shared/sibling-channel-BRZpLiDA.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineEngineContractSuite as t}from"../packem_shared/defineEngineContractSuite-
|
|
1
|
+
import{defineEngineContractSuite as t}from"../packem_shared/defineEngineContractSuite-C6NKOjJn.mjs";export{t as defineEngineContractSuite};
|
package/dist/index.d.mts
CHANGED
|
@@ -425,6 +425,13 @@ interface MutationDelta {
|
|
|
425
425
|
interface DatabaseWriterLike {
|
|
426
426
|
aggregate: (tableName: string, options: AggregateOptions) => Promise<AggregateResult>;
|
|
427
427
|
asId?: (tableName: string, id: string) => string;
|
|
428
|
+
cdcChangedTables?: (sinceSeq: number, options?: {
|
|
429
|
+
cursorOnly?: boolean;
|
|
430
|
+
}) => Promise<{
|
|
431
|
+
cursor: number;
|
|
432
|
+
floor?: number;
|
|
433
|
+
tables: string[];
|
|
434
|
+
} | undefined>;
|
|
428
435
|
count: (tableName: string, where?: RestrictableQueryOptions | WhereInput) => Promise<number>;
|
|
429
436
|
delete: (id: string, expectedTable?: string, options?: {
|
|
430
437
|
hard?: boolean;
|
|
@@ -662,12 +669,18 @@ interface RunTriggersOptions {
|
|
|
662
669
|
}
|
|
663
670
|
declare const runTriggers: (options: RunTriggersOptions) => Promise<void>;
|
|
664
671
|
declare const hasTrigger: (schema: SchemaLike, tableName: string, op: TriggerOpLike) => boolean;
|
|
672
|
+
interface SearchBackfillProgress {
|
|
673
|
+
done: boolean;
|
|
674
|
+
pages: number;
|
|
675
|
+
}
|
|
665
676
|
declare const backfillAggregateIndexes: (sql: SqlExec, schema: SchemaLike) => void;
|
|
666
677
|
declare const backfillRankIndexes: (sql: SqlExec, schema: SchemaLike) => void;
|
|
667
678
|
declare const backfillSearchIndexesForTable: (sql: SqlExec, tableName: string, definition: {
|
|
668
679
|
searchIndexes?: ReadonlyArray<SearchIndexDefinitionLike>;
|
|
669
680
|
}) => void;
|
|
670
|
-
declare const backfillSearchIndexes: (sql: SqlExec, schema: SchemaLike
|
|
681
|
+
declare const backfillSearchIndexes: (sql: SqlExec, schema: SchemaLike, options?: {
|
|
682
|
+
maxPages?: number;
|
|
683
|
+
}) => SearchBackfillProgress;
|
|
671
684
|
declare const CDC_LOG_TABLE = "__cdc_log";
|
|
672
685
|
interface CdcChange {
|
|
673
686
|
doc?: Record<string, unknown>;
|
|
@@ -677,6 +690,7 @@ interface CdcChange {
|
|
|
677
690
|
table: string;
|
|
678
691
|
ts: number;
|
|
679
692
|
}
|
|
693
|
+
declare const CDC_LOG_TABLE_SEQ_INDEX = "__cdc_log_table_seq";
|
|
680
694
|
declare const migrateCdcLog: (sql: SqlExec) => void;
|
|
681
695
|
declare const appendCdcChange: (sql: SqlExec, ts: number, table: string, id: string, op: CdcChange["op"], doc: Record<string, unknown> | undefined) => void;
|
|
682
696
|
declare const readCdcChanges: (sql: SqlExec, options?: {
|
|
@@ -687,9 +701,22 @@ declare const readCdcChanges: (sql: SqlExec, options?: {
|
|
|
687
701
|
changes: CdcChange[];
|
|
688
702
|
cursor: number;
|
|
689
703
|
};
|
|
690
|
-
declare const
|
|
704
|
+
declare const cdcTouchesTables: (sql: SqlExec, sinceSeq: number, tables: ReadonlySet<string>) => boolean;
|
|
705
|
+
declare const cdcCanVouchFor: (sql: SqlExec, deps: ReadonlySet<string>) => boolean;
|
|
706
|
+
interface CdcChangeKey {
|
|
707
|
+
id: string;
|
|
708
|
+
op: CdcChange["op"];
|
|
709
|
+
seq: number;
|
|
710
|
+
}
|
|
711
|
+
declare const readCdcChangeKeys: (sql: SqlExec, table: string, sinceSeq: number, upTo: number) => CdcChangeKey[];
|
|
712
|
+
declare const trimCdcChanges: (sql: SqlExec, throughSeq: number, maxRows: number) => void;
|
|
713
|
+
declare const compactCdcDocs: (sql: SqlExec, throughSeq: number, maxRows: number) => void;
|
|
714
|
+
declare const cdcSeqLeavingRows: (sql: SqlExec, keep: number) => number | undefined;
|
|
691
715
|
declare const readCdcCursor: (sql: SqlExec) => number;
|
|
716
|
+
declare const cursorBelowRetainedFloor: (floor: number | undefined, sinceSeq: number) => boolean;
|
|
717
|
+
declare const cdcTrimmedError: (floor: number, sinceSeq: number, scope: "global" | "shard") => LunoraError;
|
|
692
718
|
declare const minCdcSeq: (sql: SqlExec) => number | undefined;
|
|
719
|
+
declare const minCdcReplayableSeq: (sql: SqlExec) => number | undefined;
|
|
693
720
|
declare const CDC_META_TABLE = "__cdc_meta";
|
|
694
721
|
declare const migrateCdcMeta: (sql: SqlExec) => void;
|
|
695
722
|
declare const readCdcEpoch: (sql: SqlExec) => string;
|
|
@@ -759,7 +786,7 @@ interface ShapeRow {
|
|
|
759
786
|
id: string;
|
|
760
787
|
}
|
|
761
788
|
declare const selectShapeRows: (sql: SqlExec, table: string, effectiveWhere: WhereInput | undefined) => ShapeRow[];
|
|
762
|
-
declare const
|
|
789
|
+
declare const selectShapeMembers: (sql: SqlExec, table: string, effectiveWhere: WhereInput | undefined, ids: ReadonlyArray<string>) => Map<string, Record<string, unknown>>;
|
|
763
790
|
interface SqlExec {
|
|
764
791
|
exec: <Row = Record<string, unknown>>(sql: string, ...params: unknown[]) => SqlCursor<Row>;
|
|
765
792
|
}
|
|
@@ -948,6 +975,7 @@ declare const SHAPE_POKE_CURSOR_TABLE = "__shape_poke_cursor";
|
|
|
948
975
|
declare const migrateShapePokeCursor: (sql: SqlExec) => void;
|
|
949
976
|
declare const readShapePokeCursor: (sql: SqlExec, connectionId: string, subId: string) => number | undefined;
|
|
950
977
|
declare const writeShapePokeCursor: (sql: SqlExec, connectionId: string, subId: string, cursor: number) => void;
|
|
978
|
+
declare const minShapePokeCursor: (sql: SqlExec) => number | undefined;
|
|
951
979
|
declare const deleteShapePokeCursor: (sql: SqlExec, connectionId: string, subId: string) => void;
|
|
952
980
|
declare const deleteShapePokeCursorsForConnection: (sql: SqlExec, connectionId: string) => void;
|
|
953
981
|
declare const DATA_MIGRATION_STATE_TABLE = "__lunora_migrations";
|
|
@@ -1108,6 +1136,8 @@ declare class DurableStreamRunner {
|
|
|
1108
1136
|
private produce;
|
|
1109
1137
|
private trim;
|
|
1110
1138
|
}
|
|
1139
|
+
declare const envPositiveInt: (env: unknown, key: string, fallback: number) => number;
|
|
1140
|
+
declare const envOptionalPositiveInt: (env: unknown, key: string) => number | undefined;
|
|
1111
1141
|
interface ExternalSourceDiffResult {
|
|
1112
1142
|
changes: CdcChange[];
|
|
1113
1143
|
nextBaseline: Map<string, string>;
|
|
@@ -1187,6 +1217,19 @@ declare const coveringGeohashes: (center: GeoPoint, radiusMeters: number) => str
|
|
|
1187
1217
|
declare const pointInBoundingBox: (point: GeoPoint, box: GeoBoundingBox) => boolean;
|
|
1188
1218
|
declare const boundingBoxCenter: (box: GeoBoundingBox) => GeoPoint;
|
|
1189
1219
|
declare const boundingBoxGeohashes: (box: GeoBoundingBox) => string[];
|
|
1220
|
+
declare class GlobalPollTick {
|
|
1221
|
+
private readonly changedTables;
|
|
1222
|
+
private readonly reads;
|
|
1223
|
+
private resync;
|
|
1224
|
+
private skippedCount;
|
|
1225
|
+
constructor(changedTables?: Set<string>);
|
|
1226
|
+
get readCount(): number;
|
|
1227
|
+
get resyncRequested(): boolean;
|
|
1228
|
+
get skipped(): number;
|
|
1229
|
+
requestResync(): void;
|
|
1230
|
+
rows(key: string | undefined, load: () => Promise<ShapeRow[]>): Promise<ShapeRow[]>;
|
|
1231
|
+
shouldRead(table: string): boolean;
|
|
1232
|
+
}
|
|
1190
1233
|
declare const ADMIN_FUNCTION_PREFIX = "__lunora_admin__:";
|
|
1191
1234
|
declare const RELATION_FUNCTION_PREFIX = "__lunora_relation__:";
|
|
1192
1235
|
declare const FLAGS_FUNCTION_PREFIX = "__lunora_flags__:";
|
|
@@ -1197,6 +1240,7 @@ declare const ADMIN_FUNCTIONS: {
|
|
|
1197
1240
|
readonly aiGenerateSql: "__lunora_admin__:aiGenerateSql";
|
|
1198
1241
|
readonly aiTableFilter: "__lunora_admin__:aiTableFilter";
|
|
1199
1242
|
readonly assignIssue: "__lunora_admin__:assignIssue";
|
|
1243
|
+
readonly backfillSearch: "__lunora_admin__:backfillSearch";
|
|
1200
1244
|
readonly backRelationCounts: "__lunora_admin__:backRelationCounts";
|
|
1201
1245
|
readonly cdcSync: "__lunora_admin__:cdcSync";
|
|
1202
1246
|
readonly clearCapturedMail: "__lunora_admin__:clearCapturedMail";
|
|
@@ -1588,12 +1632,22 @@ interface FanoutPathCounters {
|
|
|
1588
1632
|
socketsIterated: number;
|
|
1589
1633
|
totalMs: number;
|
|
1590
1634
|
}
|
|
1635
|
+
interface ShapeProbeCounters {
|
|
1636
|
+
run: number;
|
|
1637
|
+
served: number;
|
|
1638
|
+
}
|
|
1639
|
+
interface GlobalPollCounters {
|
|
1640
|
+
drains: number;
|
|
1641
|
+
pairsSkipped: number;
|
|
1642
|
+
}
|
|
1591
1643
|
interface FanoutMetricsResult {
|
|
1644
|
+
globalPoll: GlobalPollCounters;
|
|
1592
1645
|
maxRelays: number;
|
|
1593
1646
|
peakSubscribers: number;
|
|
1594
1647
|
promoted: boolean;
|
|
1595
1648
|
relayCount: number;
|
|
1596
1649
|
shapePoke: FanoutPathCounters;
|
|
1650
|
+
shapeProbe: ShapeProbeCounters;
|
|
1597
1651
|
sinceMs: number;
|
|
1598
1652
|
topics: FanoutTopicStat[];
|
|
1599
1653
|
totalConnections: number;
|
|
@@ -1607,6 +1661,10 @@ interface FanoutAttachmentLike {
|
|
|
1607
1661
|
}
|
|
1608
1662
|
declare const DEFAULT_FANOUT_TOPIC_LIMIT = 20;
|
|
1609
1663
|
declare const createFanoutCounters: () => FanoutPathCounters;
|
|
1664
|
+
declare const createShapeProbeCounters: () => ShapeProbeCounters;
|
|
1665
|
+
declare const createGlobalPollCounters: () => GlobalPollCounters;
|
|
1666
|
+
declare const recordGlobalPollPass: (counters: GlobalPollCounters, drains: number, pairsSkipped: number) => GlobalPollCounters;
|
|
1667
|
+
declare const recordShapeProbePass: (counters: ShapeProbeCounters, run: number, served: number) => ShapeProbeCounters;
|
|
1610
1668
|
declare const recordFanoutPass: (counters: FanoutPathCounters, iterated: number, delivered: number, ms: number) => FanoutPathCounters;
|
|
1611
1669
|
declare const summarizeFanoutTopics: (attachments: FanoutAttachmentLike[], limit?: number) => {
|
|
1612
1670
|
peakSubscribers: number;
|
|
@@ -1771,6 +1829,8 @@ interface ReadFootprint {
|
|
|
1771
1829
|
tables: Set<string>;
|
|
1772
1830
|
}
|
|
1773
1831
|
declare const createReadFootprint: () => ReadFootprint;
|
|
1832
|
+
declare const UNVOUCHABLE_DEP = "!unvouchable";
|
|
1833
|
+
declare const markUnvouchableReads: <T extends object>(facade: T, onRead: ReadFootprint["onRead"] | undefined, methods: ReadonlyArray<string>) => T;
|
|
1774
1834
|
declare const DEFAULT_MAX_RELATION_KEYS = 5000;
|
|
1775
1835
|
interface RelationExistsMarker {
|
|
1776
1836
|
childWhere: WhereInput;
|
|
@@ -1830,6 +1890,8 @@ interface ShapeRowOp {
|
|
|
1830
1890
|
value?: Record<string, unknown>;
|
|
1831
1891
|
}
|
|
1832
1892
|
interface ShapePokePart {
|
|
1893
|
+
baseCheckpoint?: number;
|
|
1894
|
+
reset?: boolean;
|
|
1833
1895
|
rowsPatch: ShapeRowOp[];
|
|
1834
1896
|
shapeId: string;
|
|
1835
1897
|
}
|
|
@@ -1920,6 +1982,7 @@ interface RelayHost {
|
|
|
1920
1982
|
baseCheckpoint: number | undefined;
|
|
1921
1983
|
cursor: number;
|
|
1922
1984
|
epoch: string | undefined;
|
|
1985
|
+
reset: boolean;
|
|
1923
1986
|
rowsPatch: ShapeRowOp[];
|
|
1924
1987
|
};
|
|
1925
1988
|
currentCdcEpoch: () => string | undefined;
|
|
@@ -1950,6 +2013,7 @@ declare abstract class RelayLink {
|
|
|
1950
2013
|
maxRelays(): number;
|
|
1951
2014
|
protected canAddressSiblings(): boolean;
|
|
1952
2015
|
protected siblingStub(targetName: string): SiblingStub | undefined;
|
|
2016
|
+
protected bindingName(): string | undefined;
|
|
1953
2017
|
protected postRelayMessage(targetName: string, message: OwnerRelayFrame): Promise<void>;
|
|
1954
2018
|
protected requestRelayMessage(targetName: string, message: OwnerRelayFrame): Promise<Response | undefined>;
|
|
1955
2019
|
abstract forwardWhisper(topic: string, frame: string): Promise<void>;
|
|
@@ -1962,6 +2026,7 @@ declare abstract class RelayLink {
|
|
|
1962
2026
|
abstract announceDrain(closing: ShardSocketLike): Promise<void>;
|
|
1963
2027
|
abstract relayCount(): number;
|
|
1964
2028
|
abstract isShapeRelayUniform(name: string, args: Record<string, unknown>): boolean;
|
|
2029
|
+
abstract minShapeCursor(): number | undefined;
|
|
1965
2030
|
protected abstract onAttach(index: number): void;
|
|
1966
2031
|
protected abstract onDetach(index: number): void;
|
|
1967
2032
|
protected abstract onWhisperFrame(message: RelayFrame): Promise<void>;
|
|
@@ -1971,8 +2036,8 @@ declare abstract class RelayLink {
|
|
|
1971
2036
|
declare class OwnerRelay extends RelayLink {
|
|
1972
2037
|
private readonly shapeUniformCache;
|
|
1973
2038
|
private relaySetCache;
|
|
1974
|
-
private
|
|
1975
|
-
private
|
|
2039
|
+
private registryCache;
|
|
2040
|
+
private recordedBinding;
|
|
1976
2041
|
private promotionState;
|
|
1977
2042
|
constructor(host: RelayHost, ownerKey: string);
|
|
1978
2043
|
forwardWhisper(topic: string, frame: string): Promise<void>;
|
|
@@ -1984,6 +2049,7 @@ declare class OwnerRelay extends RelayLink {
|
|
|
1984
2049
|
announce(): Promise<void>;
|
|
1985
2050
|
announceDrain(): Promise<void>;
|
|
1986
2051
|
relayCount(): number;
|
|
2052
|
+
minShapeCursor(): number | undefined;
|
|
1987
2053
|
isShapeRelayUniform(name: string, args: Record<string, unknown>): boolean;
|
|
1988
2054
|
protected onAttach(index: number): void;
|
|
1989
2055
|
protected onDetach(index: number): void;
|
|
@@ -1992,9 +2058,14 @@ declare class OwnerRelay extends RelayLink {
|
|
|
1992
2058
|
protected onShapePoke(): number;
|
|
1993
2059
|
private buildShapePoke;
|
|
1994
2060
|
private multicastShapePokes;
|
|
2061
|
+
private multicastToRelays;
|
|
1995
2062
|
private proxyShapePokes;
|
|
2063
|
+
private proxyToRelay;
|
|
1996
2064
|
private buildShapeSeedFrames;
|
|
1997
|
-
private
|
|
2065
|
+
private ensureRelayTables;
|
|
2066
|
+
protected bindingName(): string | undefined;
|
|
2067
|
+
private relayShapes;
|
|
2068
|
+
private rewindShapeCursor;
|
|
1998
2069
|
private ownerRelaySet;
|
|
1999
2070
|
private addRelayToSet;
|
|
2000
2071
|
private removeRelayFromSet;
|
|
@@ -2015,6 +2086,7 @@ declare class RelayMember extends RelayLink {
|
|
|
2015
2086
|
announceDrain(closing: ShardSocketLike): Promise<void>;
|
|
2016
2087
|
relayCount(): number;
|
|
2017
2088
|
isShapeRelayUniform(): boolean;
|
|
2089
|
+
minShapeCursor(): number | undefined;
|
|
2018
2090
|
protected onAttach(): void;
|
|
2019
2091
|
protected onDetach(): void;
|
|
2020
2092
|
protected onWhisperFrame(): Promise<void>;
|
|
@@ -2108,6 +2180,24 @@ declare const readSchemaHistory: (sql: SqlExec) => SchemaVersionRow[];
|
|
|
2108
2180
|
declare const readSchemaVersion: (sql: SqlExec, hash: string) => SchemaVersionRow | undefined;
|
|
2109
2181
|
declare const isDevEnvironment: (rawEnv: unknown) => boolean;
|
|
2110
2182
|
declare const buildSettings: (rawEnv: unknown) => SettingsResult;
|
|
2183
|
+
declare class ShapeDiffCache {
|
|
2184
|
+
private readonly keyScans;
|
|
2185
|
+
private readonly memberProbes;
|
|
2186
|
+
private run;
|
|
2187
|
+
private served;
|
|
2188
|
+
get probesRun(): number;
|
|
2189
|
+
get probesServed(): number;
|
|
2190
|
+
changedKeys(rangeKey: string, load: () => CdcChangeKey[]): ReadonlyArray<CdcChangeKey>;
|
|
2191
|
+
members(resolved: ResolvedShape, rangeKey: string, load: () => Map<string, Record<string, unknown>>): ReadonlyMap<string, Record<string, unknown>>;
|
|
2192
|
+
private getOrLoad;
|
|
2193
|
+
}
|
|
2194
|
+
declare const createShapeDiffCache: () => ShapeDiffCache;
|
|
2195
|
+
declare const globalShapeReadKey: (resolved: ResolvedShape, identity: {
|
|
2196
|
+
identity?: Record<string, unknown>;
|
|
2197
|
+
userId?: string;
|
|
2198
|
+
}) => string | undefined;
|
|
2199
|
+
type ReadShapeCdcKeys = (sql: SqlExec, table: string, sinceSeq: number, upTo: number) => CdcChangeKey[];
|
|
2200
|
+
declare const buildShapeDiff: (sql: SqlExec, resolved: ResolvedShape, sinceSeq: number, upTo: number, cache: ShapeDiffCache, readKeys?: ReadShapeCdcKeys) => ShapeRowOp[];
|
|
2111
2201
|
interface ShardRunnerOptions {
|
|
2112
2202
|
handlers?: {
|
|
2113
2203
|
handleAlarm?: () => Promise<void>;
|
|
@@ -2206,4 +2296,4 @@ interface WhereSqlStrategy {
|
|
|
2206
2296
|
}
|
|
2207
2297
|
declare const literalInList: (reference: SQL, items: ReadonlyArray<unknown>, negated: boolean) => SQL;
|
|
2208
2298
|
declare const compileWhereSql: (where: WhereInput | undefined, strategy: WhereSqlStrategy) => SQL | undefined;
|
|
2209
|
-
export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX, AGGREGATE_SQL_FUNCTION, AGG_COUNT, AGG_KEY, AGG_VALUE, AUDIT_LOG_TABLE, type AdvisorProcedure, type AdvisorProceduresResult, type AdvisoriesResult, type AdvisoryFinding, type AggregateIndexDefinitionLike, type AggregateOp, type AggregateOptions, type AggregateResult, type AggregateTally, type AppendAuditEntry, type ApplyOnDeleteOptions$1 as ApplyOnDeleteOptions, type AuditEntry, type AuditLogResult, type BroadcastDelta, CDC_LOG_TABLE, CDC_META_TABLE, CLIENT_WATERMARK_TABLE, COMMIT_SEQ_FIELD, COMMIT_SEQ_TABLE, type CacheEntry, type CapturedMailRow, type CdcChange, type ChangedKeys, type Clock, type ColumnMeta, type ColumnMetaLike, type CompanionSync, type CompanionSyncDeps, ConflictError, type ConflictKind, type CountArgs, CountRlsUnsupportedError, type CreateWorkflowInstanceResult, type CrossShardReadArgs, type CtxDbOptions, DATA_MIGRATION_STATE_TABLE, DEFAULT_FANOUT_TOPIC_LIMIT, DEFAULT_MAX_RELATION_KEYS, DEFAULT_MAX_RELAYS, DEFAULT_PROMOTION_THRESHOLDS, DEFAULT_TRANSACTION_LIMITS, DOC_COLUMN, type DataMigrationDocument, type DataMigrationLike, type DataMigrationTransform, type DatabaseWriterLike, type DependencyTracker, type DeployInfo, type DurableAttachDecision, type DurableStreamAttach, type DurableStreamRun, DurableStreamRunner, type DurableStreamSink, type ExportRow, type ExportShardAdminArgs, type ExportShardArgs, type ExternalSourceDiffResult, type ExternalSourceLike, FLAGS_FUNCTION_PREFIX, type FacetColumnOptions, type FacetColumnResult, type FacetValue, type FanoutMetricsResult, type FanoutPathCounters, type FanoutTopicStat, type FieldOperators, type FilterClause, type FilterOperator, type FlagEvaluation, type FlagsResult, type FunctionCallStat, type FunctionScanAttribution, type FunctionStatsResult, GEO_DEFAULT_PRECISION, GLOBAL_SHAPE_SNAPSHOT_TABLE, type GeoBoundingBox, type GeoFilterBuilderLike, type GeoIndexDefinitionLike, type GeoPoint, type GeoScoredDocument, type GroupByEntry, type GroupByOptions, type GuardableSchema$1 as GuardableSchema, IDEMPOTENCY_TABLE, type IdGenerator, type IdempotentRecord, type ImportError, type ImportShardAdminArgs, type ImportShardArgs, type ImportShardResult, type IncrementalMaterializeResult, type IndexDefinitionLike, type IndexKeyEntry, type IndexRangeBuilderLike, type KeyRange, type LifecycleDispatchInfo, type LifecycleEvent, MAIL_RETENTION, MAIL_TABLE, MAX_DURABLE_STREAM_BYTES, MAX_DURABLE_STREAM_CHUNKS, MAX_PAGE_SIZE, MAX_SQL_ROWS, type MaskColumnMetadata, type MaskPoliciesResult, type MaterializeResult, type MigrationDirection, type MigrationRunResult, type MigrationStatus, type MigrationStatusRow, type MutationDelta, type NestedWith, NotFoundError, NotUniqueError, type OnDeleteActionLike, type OrderByClause, type OrderByInput, type OrderKey, OwnerRelay, type OwnerRelayFrame, type PaginationOptions, type PitrBookmarkResult, type PitrRestoreArgs, type PitrRestoreResult, type PitrStorage, type PokeFrameMeta, type PromotionState, type PromotionThresholds, QUEUE_TABLE, type QueryArgs, type QueryPage, type QueueMessageOutcome, type QueueMessageRow, type QueueMetadata, type QueuesResult, RANK_TIEBREAK, REACTOR_STATE_TABLE, RELATION_EXISTS_KEY, RELATION_FUNCTION_PREFIX, REPROJECTION_MIGRATION_PREFIX, RLS_UNWRAP_SYMBOL, type RankBeforeOptions, type RankBeforeResult, type RankDirection, type RankIndexDefinitionLike, type RankOptions, type RankPage, type RankPageComputation, type RankPageDeps, type RankPageOptions, type RankPageRow, type RankPageRowKey, type RankResult, type RankSortKeyLike, ReactiveCache, type ReactiveCacheOptions, type ReactorDispatchResult, type ReactorMetadata, type ReactorState, type ReactorStats, type ReactorsResult, type ReadFootprint, type ReadHook, type ReadTablePageOptions, type RecordMailInput, type RecordQueueMessageInput, type RelationDefinitionLike, type RelationExistsMarker, type RelayAttach, type RelayDetach, type RelayFrame, type RelayHost, RelayMember, type RelayShapePoke, type RelayShapeSeed, type RelayShapeSubscribe, type RenderedSql, type ReplicaFollowerHost, type ReplicaOwnerHost, type ReplicaReadiness, type ResolveRelationPredicatesOptions, type ResolveWithOptions, type ResolveWithResult, type ResolvedShape, type RestrictableQueryOptions, type RlsPoliciesResult, type RlsPolicyMetadata, RlsRequiredError, type RlsRoleMetadata, type RpcRequest, type RunDataMigrationOptions, type RunTriggersOptions, SCAN_DEP, SCHEMA_HISTORY_MAX_VERSIONS, SEARCH_STATE_TABLE, SHAPE_POKE_CURSOR_TABLE, type SchedulableWorkflowReferenceLike, type ScheduledFunctionDoc, type SchedulerLike, type SchemaLike, type ScoredDocument, type SearchFilterBuilderLike, type SearchIndexDefinitionLike, type SearchScoredDocument, type SelectMatchingIdsOptions, type ServerDefaultContextLike, type SettingEntry, type SettingKind, type SettingsResult, type ShapePokePart, type ShapeRow, type ShapeRowOp, type ShapeSubscriptionQuery, type ShardRankPageResult, ShardRunner, type ShardRunnerOptions, type ShardSiblingHost, type ShardSocketLike, type SocketAttachment, type SortDirection, type SourceClientLike, type SourceCursorLike, type SourceRefresh, type SqlConsoleResult, type SqlCursor, type SqlEngine, type SqlExec, type SqlLintResult, type StorageMetadata, type StorageReference, type StorageReferenceResult, type StorageRuleMetadata, type StorageRulesResult, type StudioFeaturesResult, type SubscriptionConnection, type SubscriptionEnvelope, type SubscriptionIdentity, type SubscriptionInfo, type SubscriptionQuery, type SubscriptionReadFootprint, type SubscriptionsResult, type SystemDatabaseReader, type SystemDoc, type SystemQuery, type SystemReaderOptions, type SystemReaderSchedulerLike, type SystemReaderStorageLike, type SystemTableName, type TableColumnsResult, type TableDefinitionLike, type TableIndexInfo, type TableIndexesResult, type TableInfo, type TablePage, type TableReaderLike, type TablesColumnsResult, type TablesIndexesResult, type TransactionHeadroom, TransactionHeadroomTracker, type TransactionLimits, type TransactionSqlLike, type TriggerContextLike, type TriggerDefinitionLike, type TriggerEventLike, type TriggerOpLike, type TriggerTimingLike, type TtlSweepSpec, type ValidatorLike, type WhereInput, type WhereSqlStrategy, type WithInput, type WorkflowInstanceState, type WorkflowInstanceStatusResult, type WorkflowMetadata, type WorkflowsResult, type WriteEvent, type WriteHook, advanceClientWatermark, aggUpsertSql, aggregateSqlFunction, aggregateTableName, allocateCommitSeq, appendAuditEntry, appendCdcChange, appendStreamChunk, applyCdcChanges, applyOnDelete, applySelect, armRestore, assertFlatPredicate, assertReadonly, assertShapeShardable, assertValidClientId, awaitWsDrain, backfillAggregateIndexes, backfillRankIndexes, backfillSearchIndexes, backfillSearchIndexesForTable, boundingBoxCenter, boundingBoxGeohashes, buildIndexRange, buildPokeFrames, buildReprojectionMigration, buildSeekBeforeWhere, buildSeekWhere, buildSettings, bumpCdcEpoch, claimStreamRun, clampPromotionThresholds, clearCapturedMail, clearMemoryTables, clearQueueMessages, coerceAggregateNumber, compileWhereSql, computeRankPage, containsRelationPredicate, countLegacyRows, coveringGeohashes, createCompanionSync, createDependencyTracker, createFanoutCounters, createIndexSql, createReadFootprint, createRelayLink, createReplicaLink, createShardCtxDb, createSystemReader, decideDurableAttach, decodeCursor, deleteGlobalShapeSnapshot, deleteGlobalShapeSnapshotsForConnection, deleteShapePokeCursor, deleteShapePokeCursorsForConnection, deleteStreamRun, depKey, diffExternalSource, diffGlobalMembership, distinctValues, encodeAggregateKey, encodeCursor, encodeGeohash, encodePartitionKey, encodeRowsPatch, ensureAuditTable, ensureMailTable, exportShardRows, exportShardTable, facetColumn, fanOutScalarCounts, findStorageReferences, finishStreamRun, foldAggregateTally, gateReplicaDispatch, geoTableName, guardWriter, handleReplicaControl, hasTrigger, haversineMeters, hydrateDocsById, importShardRows, indexKeysForRow, isDevEnvironment, isFtsAvailable, isLossyBody, isMemoryTable, isRelationPredicate, isSoftDeleted, isSourceDue, jsonPath, jsonPathSql, keysTouchRanges, liftSourceId, lintReadonlySql, listReactorStates, listTables, literalInList, matchesRankStaticWhere, matchesStaticWhere, materializeExternalRows, materializeExternalRowsIncremental, memoryTableNames, mergeChangedKeys, mergeWhere, migrateCdcLog, migrateCdcMeta, migrateClientWatermark, migrateCommitSeq, migrateDurableStreams, migrateGlobalShapeSnapshot, migrateIdempotency, migrateReactorState, migrateSearchState, migrateShapePokeCursor, minCdcSeq, nextPromotionState, normalizeCountArgument, normalizeIdStructurally, normalizeOrderKeys, normalizeSourceDocument, normalizeSourceValue, param, parseExportShardArgs, parseImportShardArgs, planAggregateLookup, pointInBoundingBox, projectColumns, pullExternalSourceIncrementalTick, pullExternalSourceTick, qualifiedJsonPath, qualifiedJsonPathSql, quoteIdentifier, rankKeyFromDocument as rankKeyFromDoc, rankTableName, reactiveCacheKey, reactorNeedsRun, readAggregateValue, readAuditLog, readBookmark, readCapturedMail, readCdcChanges, readCdcCursor, readCdcEpoch, readClientWatermark, readCommitSeq, readExternalSourceBaseline, readGlobalShapeSnapshot, readIdempotent, readMigrationStatus, readQueueMessageById, readQueueMessages, readReactorState, readSchemaHistory, readSchemaVersion, readSearchBackfillState, readShapePokeCursor, readStreamChunks, readStreamRun, readTablePage, recordCapturedMail, recordChangedKeys, recordFanoutPass, recordQueueMessages, recordSchemaVersion, relationHooks, relayCountFor, renderSql, reprojectableFields, reprojectionMigrationId, reprojectionTables, resolveRankPartition, resolveRelationPredicates, resolveWith, rowToDocument, runDataMigration, runDrizzle, runExternalSourceTick, runReadonlySql, runRowValidators, runShardMigrations, runSocketPool, runSql, runTriggers, selectExpiredIds, selectExportTables, selectIndexForAggregate, selectIndexForCount, selectIndexForGroupBy, selectMatchingIds, selectShapeMemberIds, selectShapeRows, serializeSqlValue, shapeRoutingKey, softDeleteScope, sortColumnName, sqliteInList, stableStringify, stableWireKey, subscriptionFrames, subscriptionListDeltas, summarizeFanoutTopics, summarizeSubscriptions, tableColumns, tableFromDepKey, throwingScheduler, trimCdcChanges, trimIdempotent, trimStreamRuns, tryRowToDocument, trySendFrame, unionAll, validateImportRow, writeGlobalShapeSnapshot, writeIdempotent, writeReactorState, writeSearchBackfillState, writeShapePokeCursor, writeTouchesMemo };
|
|
2299
|
+
export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX, AGGREGATE_SQL_FUNCTION, AGG_COUNT, AGG_KEY, AGG_VALUE, AUDIT_LOG_TABLE, type AdvisorProcedure, type AdvisorProceduresResult, type AdvisoriesResult, type AdvisoryFinding, type AggregateIndexDefinitionLike, type AggregateOp, type AggregateOptions, type AggregateResult, type AggregateTally, type AppendAuditEntry, type ApplyOnDeleteOptions$1 as ApplyOnDeleteOptions, type AuditEntry, type AuditLogResult, type BroadcastDelta, CDC_LOG_TABLE, CDC_LOG_TABLE_SEQ_INDEX, CDC_META_TABLE, CLIENT_WATERMARK_TABLE, COMMIT_SEQ_FIELD, COMMIT_SEQ_TABLE, type CacheEntry, type CapturedMailRow, type CdcChange, type CdcChangeKey, type ChangedKeys, type Clock, type ColumnMeta, type ColumnMetaLike, type CompanionSync, type CompanionSyncDeps, ConflictError, type ConflictKind, type CountArgs, CountRlsUnsupportedError, type CreateWorkflowInstanceResult, type CrossShardReadArgs, type CtxDbOptions, DATA_MIGRATION_STATE_TABLE, DEFAULT_FANOUT_TOPIC_LIMIT, DEFAULT_MAX_RELATION_KEYS, DEFAULT_MAX_RELAYS, DEFAULT_PROMOTION_THRESHOLDS, DEFAULT_TRANSACTION_LIMITS, DOC_COLUMN, type DataMigrationDocument, type DataMigrationLike, type DataMigrationTransform, type DatabaseWriterLike, type DependencyTracker, type DeployInfo, type DurableAttachDecision, type DurableStreamAttach, type DurableStreamRun, DurableStreamRunner, type DurableStreamSink, type ExportRow, type ExportShardAdminArgs, type ExportShardArgs, type ExternalSourceDiffResult, type ExternalSourceLike, FLAGS_FUNCTION_PREFIX, type FacetColumnOptions, type FacetColumnResult, type FacetValue, type FanoutMetricsResult, type FanoutPathCounters, type FanoutTopicStat, type FieldOperators, type FilterClause, type FilterOperator, type FlagEvaluation, type FlagsResult, type FunctionCallStat, type FunctionScanAttribution, type FunctionStatsResult, GEO_DEFAULT_PRECISION, GLOBAL_SHAPE_SNAPSHOT_TABLE, type GeoBoundingBox, type GeoFilterBuilderLike, type GeoIndexDefinitionLike, type GeoPoint, type GeoScoredDocument, type GlobalPollCounters, GlobalPollTick, type GroupByEntry, type GroupByOptions, type GuardableSchema$1 as GuardableSchema, IDEMPOTENCY_TABLE, type IdGenerator, type IdempotentRecord, type ImportError, type ImportShardAdminArgs, type ImportShardArgs, type ImportShardResult, type IncrementalMaterializeResult, type IndexDefinitionLike, type IndexKeyEntry, type IndexRangeBuilderLike, type KeyRange, type LifecycleDispatchInfo, type LifecycleEvent, MAIL_RETENTION, MAIL_TABLE, MAX_DURABLE_STREAM_BYTES, MAX_DURABLE_STREAM_CHUNKS, MAX_PAGE_SIZE, MAX_SQL_ROWS, type MaskColumnMetadata, type MaskPoliciesResult, type MaterializeResult, type MigrationDirection, type MigrationRunResult, type MigrationStatus, type MigrationStatusRow, type MutationDelta, type NestedWith, NotFoundError, NotUniqueError, type OnDeleteActionLike, type OrderByClause, type OrderByInput, type OrderKey, OwnerRelay, type OwnerRelayFrame, type PaginationOptions, type PitrBookmarkResult, type PitrRestoreArgs, type PitrRestoreResult, type PitrStorage, type PokeFrameMeta, type PromotionState, type PromotionThresholds, QUEUE_TABLE, type QueryArgs, type QueryPage, type QueueMessageOutcome, type QueueMessageRow, type QueueMetadata, type QueuesResult, RANK_TIEBREAK, REACTOR_STATE_TABLE, RELATION_EXISTS_KEY, RELATION_FUNCTION_PREFIX, REPROJECTION_MIGRATION_PREFIX, RLS_UNWRAP_SYMBOL, type RankBeforeOptions, type RankBeforeResult, type RankDirection, type RankIndexDefinitionLike, type RankOptions, type RankPage, type RankPageComputation, type RankPageDeps, type RankPageOptions, type RankPageRow, type RankPageRowKey, type RankResult, type RankSortKeyLike, ReactiveCache, type ReactiveCacheOptions, type ReactorDispatchResult, type ReactorMetadata, type ReactorState, type ReactorStats, type ReactorsResult, type ReadFootprint, type ReadHook, type ReadTablePageOptions, type RecordMailInput, type RecordQueueMessageInput, type RelationDefinitionLike, type RelationExistsMarker, type RelayAttach, type RelayDetach, type RelayFrame, type RelayHost, RelayMember, type RelayShapePoke, type RelayShapeSeed, type RelayShapeSubscribe, type RenderedSql, type ReplicaFollowerHost, type ReplicaOwnerHost, type ReplicaReadiness, type ResolveRelationPredicatesOptions, type ResolveWithOptions, type ResolveWithResult, type ResolvedShape, type RestrictableQueryOptions, type RlsPoliciesResult, type RlsPolicyMetadata, RlsRequiredError, type RlsRoleMetadata, type RpcRequest, type RunDataMigrationOptions, type RunTriggersOptions, SCAN_DEP, SCHEMA_HISTORY_MAX_VERSIONS, SEARCH_STATE_TABLE, SHAPE_POKE_CURSOR_TABLE, type SchedulableWorkflowReferenceLike, type ScheduledFunctionDoc, type SchedulerLike, type SchemaLike, type ScoredDocument, type SearchBackfillProgress, type SearchFilterBuilderLike, type SearchIndexDefinitionLike, type SearchScoredDocument, type SelectMatchingIdsOptions, type ServerDefaultContextLike, type SettingEntry, type SettingKind, type SettingsResult, ShapeDiffCache, type ShapePokePart, type ShapeProbeCounters, type ShapeRow, type ShapeRowOp, type ShapeSubscriptionQuery, type ShardRankPageResult, ShardRunner, type ShardRunnerOptions, type ShardSiblingHost, type ShardSocketLike, type SocketAttachment, type SortDirection, type SourceClientLike, type SourceCursorLike, type SourceRefresh, type SqlConsoleResult, type SqlCursor, type SqlEngine, type SqlExec, type SqlLintResult, type StorageMetadata, type StorageReference, type StorageReferenceResult, type StorageRuleMetadata, type StorageRulesResult, type StudioFeaturesResult, type SubscriptionConnection, type SubscriptionEnvelope, type SubscriptionIdentity, type SubscriptionInfo, type SubscriptionQuery, type SubscriptionReadFootprint, type SubscriptionsResult, type SystemDatabaseReader, type SystemDoc, type SystemQuery, type SystemReaderOptions, type SystemReaderSchedulerLike, type SystemReaderStorageLike, type SystemTableName, type TableColumnsResult, type TableDefinitionLike, type TableIndexInfo, type TableIndexesResult, type TableInfo, type TablePage, type TableReaderLike, type TablesColumnsResult, type TablesIndexesResult, type TransactionHeadroom, TransactionHeadroomTracker, type TransactionLimits, type TransactionSqlLike, type TriggerContextLike, type TriggerDefinitionLike, type TriggerEventLike, type TriggerOpLike, type TriggerTimingLike, type TtlSweepSpec, UNVOUCHABLE_DEP, type ValidatorLike, type WhereInput, type WhereSqlStrategy, type WithInput, type WorkflowInstanceState, type WorkflowInstanceStatusResult, type WorkflowMetadata, type WorkflowsResult, type WriteEvent, type WriteHook, advanceClientWatermark, aggUpsertSql, aggregateSqlFunction, aggregateTableName, allocateCommitSeq, appendAuditEntry, appendCdcChange, appendStreamChunk, applyCdcChanges, applyOnDelete, applySelect, armRestore, assertFlatPredicate, assertReadonly, assertShapeShardable, assertValidClientId, awaitWsDrain, backfillAggregateIndexes, backfillRankIndexes, backfillSearchIndexes, backfillSearchIndexesForTable, boundingBoxCenter, boundingBoxGeohashes, buildIndexRange, buildPokeFrames, buildReprojectionMigration, buildSeekBeforeWhere, buildSeekWhere, buildSettings, buildShapeDiff, bumpCdcEpoch, cdcCanVouchFor, cdcSeqLeavingRows, cdcTouchesTables, cdcTrimmedError, claimStreamRun, clampPromotionThresholds, clearCapturedMail, clearMemoryTables, clearQueueMessages, coerceAggregateNumber, compactCdcDocs, compileWhereSql, computeRankPage, containsRelationPredicate, countLegacyRows, coveringGeohashes, createCompanionSync, createDependencyTracker, createFanoutCounters, createGlobalPollCounters, createIndexSql, createReadFootprint, createRelayLink, createReplicaLink, createShapeDiffCache, createShapeProbeCounters, createShardCtxDb, createSystemReader, cursorBelowRetainedFloor, decideDurableAttach, decodeCursor, deleteGlobalShapeSnapshot, deleteGlobalShapeSnapshotsForConnection, deleteShapePokeCursor, deleteShapePokeCursorsForConnection, deleteStreamRun, depKey, diffExternalSource, diffGlobalMembership, distinctValues, encodeAggregateKey, encodeCursor, encodeGeohash, encodePartitionKey, encodeRowsPatch, ensureAuditTable, ensureMailTable, envOptionalPositiveInt, envPositiveInt, exportShardRows, exportShardTable, facetColumn, fanOutScalarCounts, findStorageReferences, finishStreamRun, foldAggregateTally, gateReplicaDispatch, geoTableName, globalShapeReadKey, guardWriter, handleReplicaControl, hasTrigger, haversineMeters, hydrateDocsById, importShardRows, indexKeysForRow, isDevEnvironment, isFtsAvailable, isLossyBody, isMemoryTable, isRelationPredicate, isSoftDeleted, isSourceDue, jsonPath, jsonPathSql, keysTouchRanges, liftSourceId, lintReadonlySql, listReactorStates, listTables, literalInList, markUnvouchableReads, matchesRankStaticWhere, matchesStaticWhere, materializeExternalRows, materializeExternalRowsIncremental, memoryTableNames, mergeChangedKeys, mergeWhere, migrateCdcLog, migrateCdcMeta, migrateClientWatermark, migrateCommitSeq, migrateDurableStreams, migrateGlobalShapeSnapshot, migrateIdempotency, migrateReactorState, migrateSearchState, migrateShapePokeCursor, minCdcReplayableSeq, minCdcSeq, minShapePokeCursor, nextPromotionState, normalizeCountArgument, normalizeIdStructurally, normalizeOrderKeys, normalizeSourceDocument, normalizeSourceValue, param, parseExportShardArgs, parseImportShardArgs, planAggregateLookup, pointInBoundingBox, projectColumns, pullExternalSourceIncrementalTick, pullExternalSourceTick, qualifiedJsonPath, qualifiedJsonPathSql, quoteIdentifier, rankKeyFromDocument as rankKeyFromDoc, rankTableName, reactiveCacheKey, reactorNeedsRun, readAggregateValue, readAuditLog, readBookmark, readCapturedMail, readCdcChangeKeys, readCdcChanges, readCdcCursor, readCdcEpoch, readClientWatermark, readCommitSeq, readExternalSourceBaseline, readGlobalShapeSnapshot, readIdempotent, readMigrationStatus, readQueueMessageById, readQueueMessages, readReactorState, readSchemaHistory, readSchemaVersion, readSearchBackfillState, readShapePokeCursor, readStreamChunks, readStreamRun, readTablePage, recordCapturedMail, recordChangedKeys, recordFanoutPass, recordGlobalPollPass, recordQueueMessages, recordSchemaVersion, recordShapeProbePass, relationHooks, relayCountFor, renderSql, reprojectableFields, reprojectionMigrationId, reprojectionTables, resolveRankPartition, resolveRelationPredicates, resolveWith, rowToDocument, runDataMigration, runDrizzle, runExternalSourceTick, runReadonlySql, runRowValidators, runShardMigrations, runSocketPool, runSql, runTriggers, selectExpiredIds, selectExportTables, selectIndexForAggregate, selectIndexForCount, selectIndexForGroupBy, selectMatchingIds, selectShapeMembers, selectShapeRows, serializeSqlValue, shapeRoutingKey, softDeleteScope, sortColumnName, sqliteInList, stableStringify, stableWireKey, subscriptionFrames, subscriptionListDeltas, summarizeFanoutTopics, summarizeSubscriptions, tableColumns, tableFromDepKey, throwingScheduler, trimCdcChanges, trimIdempotent, trimStreamRuns, tryRowToDocument, trySendFrame, unionAll, validateImportRow, writeGlobalShapeSnapshot, writeIdempotent, writeReactorState, writeSearchBackfillState, writeShapePokeCursor, writeTouchesMemo };
|
package/dist/index.d.ts
CHANGED
|
@@ -425,6 +425,13 @@ interface MutationDelta {
|
|
|
425
425
|
interface DatabaseWriterLike {
|
|
426
426
|
aggregate: (tableName: string, options: AggregateOptions) => Promise<AggregateResult>;
|
|
427
427
|
asId?: (tableName: string, id: string) => string;
|
|
428
|
+
cdcChangedTables?: (sinceSeq: number, options?: {
|
|
429
|
+
cursorOnly?: boolean;
|
|
430
|
+
}) => Promise<{
|
|
431
|
+
cursor: number;
|
|
432
|
+
floor?: number;
|
|
433
|
+
tables: string[];
|
|
434
|
+
} | undefined>;
|
|
428
435
|
count: (tableName: string, where?: RestrictableQueryOptions | WhereInput) => Promise<number>;
|
|
429
436
|
delete: (id: string, expectedTable?: string, options?: {
|
|
430
437
|
hard?: boolean;
|
|
@@ -662,12 +669,18 @@ interface RunTriggersOptions {
|
|
|
662
669
|
}
|
|
663
670
|
declare const runTriggers: (options: RunTriggersOptions) => Promise<void>;
|
|
664
671
|
declare const hasTrigger: (schema: SchemaLike, tableName: string, op: TriggerOpLike) => boolean;
|
|
672
|
+
interface SearchBackfillProgress {
|
|
673
|
+
done: boolean;
|
|
674
|
+
pages: number;
|
|
675
|
+
}
|
|
665
676
|
declare const backfillAggregateIndexes: (sql: SqlExec, schema: SchemaLike) => void;
|
|
666
677
|
declare const backfillRankIndexes: (sql: SqlExec, schema: SchemaLike) => void;
|
|
667
678
|
declare const backfillSearchIndexesForTable: (sql: SqlExec, tableName: string, definition: {
|
|
668
679
|
searchIndexes?: ReadonlyArray<SearchIndexDefinitionLike>;
|
|
669
680
|
}) => void;
|
|
670
|
-
declare const backfillSearchIndexes: (sql: SqlExec, schema: SchemaLike
|
|
681
|
+
declare const backfillSearchIndexes: (sql: SqlExec, schema: SchemaLike, options?: {
|
|
682
|
+
maxPages?: number;
|
|
683
|
+
}) => SearchBackfillProgress;
|
|
671
684
|
declare const CDC_LOG_TABLE = "__cdc_log";
|
|
672
685
|
interface CdcChange {
|
|
673
686
|
doc?: Record<string, unknown>;
|
|
@@ -677,6 +690,7 @@ interface CdcChange {
|
|
|
677
690
|
table: string;
|
|
678
691
|
ts: number;
|
|
679
692
|
}
|
|
693
|
+
declare const CDC_LOG_TABLE_SEQ_INDEX = "__cdc_log_table_seq";
|
|
680
694
|
declare const migrateCdcLog: (sql: SqlExec) => void;
|
|
681
695
|
declare const appendCdcChange: (sql: SqlExec, ts: number, table: string, id: string, op: CdcChange["op"], doc: Record<string, unknown> | undefined) => void;
|
|
682
696
|
declare const readCdcChanges: (sql: SqlExec, options?: {
|
|
@@ -687,9 +701,22 @@ declare const readCdcChanges: (sql: SqlExec, options?: {
|
|
|
687
701
|
changes: CdcChange[];
|
|
688
702
|
cursor: number;
|
|
689
703
|
};
|
|
690
|
-
declare const
|
|
704
|
+
declare const cdcTouchesTables: (sql: SqlExec, sinceSeq: number, tables: ReadonlySet<string>) => boolean;
|
|
705
|
+
declare const cdcCanVouchFor: (sql: SqlExec, deps: ReadonlySet<string>) => boolean;
|
|
706
|
+
interface CdcChangeKey {
|
|
707
|
+
id: string;
|
|
708
|
+
op: CdcChange["op"];
|
|
709
|
+
seq: number;
|
|
710
|
+
}
|
|
711
|
+
declare const readCdcChangeKeys: (sql: SqlExec, table: string, sinceSeq: number, upTo: number) => CdcChangeKey[];
|
|
712
|
+
declare const trimCdcChanges: (sql: SqlExec, throughSeq: number, maxRows: number) => void;
|
|
713
|
+
declare const compactCdcDocs: (sql: SqlExec, throughSeq: number, maxRows: number) => void;
|
|
714
|
+
declare const cdcSeqLeavingRows: (sql: SqlExec, keep: number) => number | undefined;
|
|
691
715
|
declare const readCdcCursor: (sql: SqlExec) => number;
|
|
716
|
+
declare const cursorBelowRetainedFloor: (floor: number | undefined, sinceSeq: number) => boolean;
|
|
717
|
+
declare const cdcTrimmedError: (floor: number, sinceSeq: number, scope: "global" | "shard") => LunoraError;
|
|
692
718
|
declare const minCdcSeq: (sql: SqlExec) => number | undefined;
|
|
719
|
+
declare const minCdcReplayableSeq: (sql: SqlExec) => number | undefined;
|
|
693
720
|
declare const CDC_META_TABLE = "__cdc_meta";
|
|
694
721
|
declare const migrateCdcMeta: (sql: SqlExec) => void;
|
|
695
722
|
declare const readCdcEpoch: (sql: SqlExec) => string;
|
|
@@ -759,7 +786,7 @@ interface ShapeRow {
|
|
|
759
786
|
id: string;
|
|
760
787
|
}
|
|
761
788
|
declare const selectShapeRows: (sql: SqlExec, table: string, effectiveWhere: WhereInput | undefined) => ShapeRow[];
|
|
762
|
-
declare const
|
|
789
|
+
declare const selectShapeMembers: (sql: SqlExec, table: string, effectiveWhere: WhereInput | undefined, ids: ReadonlyArray<string>) => Map<string, Record<string, unknown>>;
|
|
763
790
|
interface SqlExec {
|
|
764
791
|
exec: <Row = Record<string, unknown>>(sql: string, ...params: unknown[]) => SqlCursor<Row>;
|
|
765
792
|
}
|
|
@@ -948,6 +975,7 @@ declare const SHAPE_POKE_CURSOR_TABLE = "__shape_poke_cursor";
|
|
|
948
975
|
declare const migrateShapePokeCursor: (sql: SqlExec) => void;
|
|
949
976
|
declare const readShapePokeCursor: (sql: SqlExec, connectionId: string, subId: string) => number | undefined;
|
|
950
977
|
declare const writeShapePokeCursor: (sql: SqlExec, connectionId: string, subId: string, cursor: number) => void;
|
|
978
|
+
declare const minShapePokeCursor: (sql: SqlExec) => number | undefined;
|
|
951
979
|
declare const deleteShapePokeCursor: (sql: SqlExec, connectionId: string, subId: string) => void;
|
|
952
980
|
declare const deleteShapePokeCursorsForConnection: (sql: SqlExec, connectionId: string) => void;
|
|
953
981
|
declare const DATA_MIGRATION_STATE_TABLE = "__lunora_migrations";
|
|
@@ -1108,6 +1136,8 @@ declare class DurableStreamRunner {
|
|
|
1108
1136
|
private produce;
|
|
1109
1137
|
private trim;
|
|
1110
1138
|
}
|
|
1139
|
+
declare const envPositiveInt: (env: unknown, key: string, fallback: number) => number;
|
|
1140
|
+
declare const envOptionalPositiveInt: (env: unknown, key: string) => number | undefined;
|
|
1111
1141
|
interface ExternalSourceDiffResult {
|
|
1112
1142
|
changes: CdcChange[];
|
|
1113
1143
|
nextBaseline: Map<string, string>;
|
|
@@ -1187,6 +1217,19 @@ declare const coveringGeohashes: (center: GeoPoint, radiusMeters: number) => str
|
|
|
1187
1217
|
declare const pointInBoundingBox: (point: GeoPoint, box: GeoBoundingBox) => boolean;
|
|
1188
1218
|
declare const boundingBoxCenter: (box: GeoBoundingBox) => GeoPoint;
|
|
1189
1219
|
declare const boundingBoxGeohashes: (box: GeoBoundingBox) => string[];
|
|
1220
|
+
declare class GlobalPollTick {
|
|
1221
|
+
private readonly changedTables;
|
|
1222
|
+
private readonly reads;
|
|
1223
|
+
private resync;
|
|
1224
|
+
private skippedCount;
|
|
1225
|
+
constructor(changedTables?: Set<string>);
|
|
1226
|
+
get readCount(): number;
|
|
1227
|
+
get resyncRequested(): boolean;
|
|
1228
|
+
get skipped(): number;
|
|
1229
|
+
requestResync(): void;
|
|
1230
|
+
rows(key: string | undefined, load: () => Promise<ShapeRow[]>): Promise<ShapeRow[]>;
|
|
1231
|
+
shouldRead(table: string): boolean;
|
|
1232
|
+
}
|
|
1190
1233
|
declare const ADMIN_FUNCTION_PREFIX = "__lunora_admin__:";
|
|
1191
1234
|
declare const RELATION_FUNCTION_PREFIX = "__lunora_relation__:";
|
|
1192
1235
|
declare const FLAGS_FUNCTION_PREFIX = "__lunora_flags__:";
|
|
@@ -1197,6 +1240,7 @@ declare const ADMIN_FUNCTIONS: {
|
|
|
1197
1240
|
readonly aiGenerateSql: "__lunora_admin__:aiGenerateSql";
|
|
1198
1241
|
readonly aiTableFilter: "__lunora_admin__:aiTableFilter";
|
|
1199
1242
|
readonly assignIssue: "__lunora_admin__:assignIssue";
|
|
1243
|
+
readonly backfillSearch: "__lunora_admin__:backfillSearch";
|
|
1200
1244
|
readonly backRelationCounts: "__lunora_admin__:backRelationCounts";
|
|
1201
1245
|
readonly cdcSync: "__lunora_admin__:cdcSync";
|
|
1202
1246
|
readonly clearCapturedMail: "__lunora_admin__:clearCapturedMail";
|
|
@@ -1588,12 +1632,22 @@ interface FanoutPathCounters {
|
|
|
1588
1632
|
socketsIterated: number;
|
|
1589
1633
|
totalMs: number;
|
|
1590
1634
|
}
|
|
1635
|
+
interface ShapeProbeCounters {
|
|
1636
|
+
run: number;
|
|
1637
|
+
served: number;
|
|
1638
|
+
}
|
|
1639
|
+
interface GlobalPollCounters {
|
|
1640
|
+
drains: number;
|
|
1641
|
+
pairsSkipped: number;
|
|
1642
|
+
}
|
|
1591
1643
|
interface FanoutMetricsResult {
|
|
1644
|
+
globalPoll: GlobalPollCounters;
|
|
1592
1645
|
maxRelays: number;
|
|
1593
1646
|
peakSubscribers: number;
|
|
1594
1647
|
promoted: boolean;
|
|
1595
1648
|
relayCount: number;
|
|
1596
1649
|
shapePoke: FanoutPathCounters;
|
|
1650
|
+
shapeProbe: ShapeProbeCounters;
|
|
1597
1651
|
sinceMs: number;
|
|
1598
1652
|
topics: FanoutTopicStat[];
|
|
1599
1653
|
totalConnections: number;
|
|
@@ -1607,6 +1661,10 @@ interface FanoutAttachmentLike {
|
|
|
1607
1661
|
}
|
|
1608
1662
|
declare const DEFAULT_FANOUT_TOPIC_LIMIT = 20;
|
|
1609
1663
|
declare const createFanoutCounters: () => FanoutPathCounters;
|
|
1664
|
+
declare const createShapeProbeCounters: () => ShapeProbeCounters;
|
|
1665
|
+
declare const createGlobalPollCounters: () => GlobalPollCounters;
|
|
1666
|
+
declare const recordGlobalPollPass: (counters: GlobalPollCounters, drains: number, pairsSkipped: number) => GlobalPollCounters;
|
|
1667
|
+
declare const recordShapeProbePass: (counters: ShapeProbeCounters, run: number, served: number) => ShapeProbeCounters;
|
|
1610
1668
|
declare const recordFanoutPass: (counters: FanoutPathCounters, iterated: number, delivered: number, ms: number) => FanoutPathCounters;
|
|
1611
1669
|
declare const summarizeFanoutTopics: (attachments: FanoutAttachmentLike[], limit?: number) => {
|
|
1612
1670
|
peakSubscribers: number;
|
|
@@ -1771,6 +1829,8 @@ interface ReadFootprint {
|
|
|
1771
1829
|
tables: Set<string>;
|
|
1772
1830
|
}
|
|
1773
1831
|
declare const createReadFootprint: () => ReadFootprint;
|
|
1832
|
+
declare const UNVOUCHABLE_DEP = "!unvouchable";
|
|
1833
|
+
declare const markUnvouchableReads: <T extends object>(facade: T, onRead: ReadFootprint["onRead"] | undefined, methods: ReadonlyArray<string>) => T;
|
|
1774
1834
|
declare const DEFAULT_MAX_RELATION_KEYS = 5000;
|
|
1775
1835
|
interface RelationExistsMarker {
|
|
1776
1836
|
childWhere: WhereInput;
|
|
@@ -1830,6 +1890,8 @@ interface ShapeRowOp {
|
|
|
1830
1890
|
value?: Record<string, unknown>;
|
|
1831
1891
|
}
|
|
1832
1892
|
interface ShapePokePart {
|
|
1893
|
+
baseCheckpoint?: number;
|
|
1894
|
+
reset?: boolean;
|
|
1833
1895
|
rowsPatch: ShapeRowOp[];
|
|
1834
1896
|
shapeId: string;
|
|
1835
1897
|
}
|
|
@@ -1920,6 +1982,7 @@ interface RelayHost {
|
|
|
1920
1982
|
baseCheckpoint: number | undefined;
|
|
1921
1983
|
cursor: number;
|
|
1922
1984
|
epoch: string | undefined;
|
|
1985
|
+
reset: boolean;
|
|
1923
1986
|
rowsPatch: ShapeRowOp[];
|
|
1924
1987
|
};
|
|
1925
1988
|
currentCdcEpoch: () => string | undefined;
|
|
@@ -1950,6 +2013,7 @@ declare abstract class RelayLink {
|
|
|
1950
2013
|
maxRelays(): number;
|
|
1951
2014
|
protected canAddressSiblings(): boolean;
|
|
1952
2015
|
protected siblingStub(targetName: string): SiblingStub | undefined;
|
|
2016
|
+
protected bindingName(): string | undefined;
|
|
1953
2017
|
protected postRelayMessage(targetName: string, message: OwnerRelayFrame): Promise<void>;
|
|
1954
2018
|
protected requestRelayMessage(targetName: string, message: OwnerRelayFrame): Promise<Response | undefined>;
|
|
1955
2019
|
abstract forwardWhisper(topic: string, frame: string): Promise<void>;
|
|
@@ -1962,6 +2026,7 @@ declare abstract class RelayLink {
|
|
|
1962
2026
|
abstract announceDrain(closing: ShardSocketLike): Promise<void>;
|
|
1963
2027
|
abstract relayCount(): number;
|
|
1964
2028
|
abstract isShapeRelayUniform(name: string, args: Record<string, unknown>): boolean;
|
|
2029
|
+
abstract minShapeCursor(): number | undefined;
|
|
1965
2030
|
protected abstract onAttach(index: number): void;
|
|
1966
2031
|
protected abstract onDetach(index: number): void;
|
|
1967
2032
|
protected abstract onWhisperFrame(message: RelayFrame): Promise<void>;
|
|
@@ -1971,8 +2036,8 @@ declare abstract class RelayLink {
|
|
|
1971
2036
|
declare class OwnerRelay extends RelayLink {
|
|
1972
2037
|
private readonly shapeUniformCache;
|
|
1973
2038
|
private relaySetCache;
|
|
1974
|
-
private
|
|
1975
|
-
private
|
|
2039
|
+
private registryCache;
|
|
2040
|
+
private recordedBinding;
|
|
1976
2041
|
private promotionState;
|
|
1977
2042
|
constructor(host: RelayHost, ownerKey: string);
|
|
1978
2043
|
forwardWhisper(topic: string, frame: string): Promise<void>;
|
|
@@ -1984,6 +2049,7 @@ declare class OwnerRelay extends RelayLink {
|
|
|
1984
2049
|
announce(): Promise<void>;
|
|
1985
2050
|
announceDrain(): Promise<void>;
|
|
1986
2051
|
relayCount(): number;
|
|
2052
|
+
minShapeCursor(): number | undefined;
|
|
1987
2053
|
isShapeRelayUniform(name: string, args: Record<string, unknown>): boolean;
|
|
1988
2054
|
protected onAttach(index: number): void;
|
|
1989
2055
|
protected onDetach(index: number): void;
|
|
@@ -1992,9 +2058,14 @@ declare class OwnerRelay extends RelayLink {
|
|
|
1992
2058
|
protected onShapePoke(): number;
|
|
1993
2059
|
private buildShapePoke;
|
|
1994
2060
|
private multicastShapePokes;
|
|
2061
|
+
private multicastToRelays;
|
|
1995
2062
|
private proxyShapePokes;
|
|
2063
|
+
private proxyToRelay;
|
|
1996
2064
|
private buildShapeSeedFrames;
|
|
1997
|
-
private
|
|
2065
|
+
private ensureRelayTables;
|
|
2066
|
+
protected bindingName(): string | undefined;
|
|
2067
|
+
private relayShapes;
|
|
2068
|
+
private rewindShapeCursor;
|
|
1998
2069
|
private ownerRelaySet;
|
|
1999
2070
|
private addRelayToSet;
|
|
2000
2071
|
private removeRelayFromSet;
|
|
@@ -2015,6 +2086,7 @@ declare class RelayMember extends RelayLink {
|
|
|
2015
2086
|
announceDrain(closing: ShardSocketLike): Promise<void>;
|
|
2016
2087
|
relayCount(): number;
|
|
2017
2088
|
isShapeRelayUniform(): boolean;
|
|
2089
|
+
minShapeCursor(): number | undefined;
|
|
2018
2090
|
protected onAttach(): void;
|
|
2019
2091
|
protected onDetach(): void;
|
|
2020
2092
|
protected onWhisperFrame(): Promise<void>;
|
|
@@ -2108,6 +2180,24 @@ declare const readSchemaHistory: (sql: SqlExec) => SchemaVersionRow[];
|
|
|
2108
2180
|
declare const readSchemaVersion: (sql: SqlExec, hash: string) => SchemaVersionRow | undefined;
|
|
2109
2181
|
declare const isDevEnvironment: (rawEnv: unknown) => boolean;
|
|
2110
2182
|
declare const buildSettings: (rawEnv: unknown) => SettingsResult;
|
|
2183
|
+
declare class ShapeDiffCache {
|
|
2184
|
+
private readonly keyScans;
|
|
2185
|
+
private readonly memberProbes;
|
|
2186
|
+
private run;
|
|
2187
|
+
private served;
|
|
2188
|
+
get probesRun(): number;
|
|
2189
|
+
get probesServed(): number;
|
|
2190
|
+
changedKeys(rangeKey: string, load: () => CdcChangeKey[]): ReadonlyArray<CdcChangeKey>;
|
|
2191
|
+
members(resolved: ResolvedShape, rangeKey: string, load: () => Map<string, Record<string, unknown>>): ReadonlyMap<string, Record<string, unknown>>;
|
|
2192
|
+
private getOrLoad;
|
|
2193
|
+
}
|
|
2194
|
+
declare const createShapeDiffCache: () => ShapeDiffCache;
|
|
2195
|
+
declare const globalShapeReadKey: (resolved: ResolvedShape, identity: {
|
|
2196
|
+
identity?: Record<string, unknown>;
|
|
2197
|
+
userId?: string;
|
|
2198
|
+
}) => string | undefined;
|
|
2199
|
+
type ReadShapeCdcKeys = (sql: SqlExec, table: string, sinceSeq: number, upTo: number) => CdcChangeKey[];
|
|
2200
|
+
declare const buildShapeDiff: (sql: SqlExec, resolved: ResolvedShape, sinceSeq: number, upTo: number, cache: ShapeDiffCache, readKeys?: ReadShapeCdcKeys) => ShapeRowOp[];
|
|
2111
2201
|
interface ShardRunnerOptions {
|
|
2112
2202
|
handlers?: {
|
|
2113
2203
|
handleAlarm?: () => Promise<void>;
|
|
@@ -2206,4 +2296,4 @@ interface WhereSqlStrategy {
|
|
|
2206
2296
|
}
|
|
2207
2297
|
declare const literalInList: (reference: SQL, items: ReadonlyArray<unknown>, negated: boolean) => SQL;
|
|
2208
2298
|
declare const compileWhereSql: (where: WhereInput | undefined, strategy: WhereSqlStrategy) => SQL | undefined;
|
|
2209
|
-
export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX, AGGREGATE_SQL_FUNCTION, AGG_COUNT, AGG_KEY, AGG_VALUE, AUDIT_LOG_TABLE, type AdvisorProcedure, type AdvisorProceduresResult, type AdvisoriesResult, type AdvisoryFinding, type AggregateIndexDefinitionLike, type AggregateOp, type AggregateOptions, type AggregateResult, type AggregateTally, type AppendAuditEntry, type ApplyOnDeleteOptions$1 as ApplyOnDeleteOptions, type AuditEntry, type AuditLogResult, type BroadcastDelta, CDC_LOG_TABLE, CDC_META_TABLE, CLIENT_WATERMARK_TABLE, COMMIT_SEQ_FIELD, COMMIT_SEQ_TABLE, type CacheEntry, type CapturedMailRow, type CdcChange, type ChangedKeys, type Clock, type ColumnMeta, type ColumnMetaLike, type CompanionSync, type CompanionSyncDeps, ConflictError, type ConflictKind, type CountArgs, CountRlsUnsupportedError, type CreateWorkflowInstanceResult, type CrossShardReadArgs, type CtxDbOptions, DATA_MIGRATION_STATE_TABLE, DEFAULT_FANOUT_TOPIC_LIMIT, DEFAULT_MAX_RELATION_KEYS, DEFAULT_MAX_RELAYS, DEFAULT_PROMOTION_THRESHOLDS, DEFAULT_TRANSACTION_LIMITS, DOC_COLUMN, type DataMigrationDocument, type DataMigrationLike, type DataMigrationTransform, type DatabaseWriterLike, type DependencyTracker, type DeployInfo, type DurableAttachDecision, type DurableStreamAttach, type DurableStreamRun, DurableStreamRunner, type DurableStreamSink, type ExportRow, type ExportShardAdminArgs, type ExportShardArgs, type ExternalSourceDiffResult, type ExternalSourceLike, FLAGS_FUNCTION_PREFIX, type FacetColumnOptions, type FacetColumnResult, type FacetValue, type FanoutMetricsResult, type FanoutPathCounters, type FanoutTopicStat, type FieldOperators, type FilterClause, type FilterOperator, type FlagEvaluation, type FlagsResult, type FunctionCallStat, type FunctionScanAttribution, type FunctionStatsResult, GEO_DEFAULT_PRECISION, GLOBAL_SHAPE_SNAPSHOT_TABLE, type GeoBoundingBox, type GeoFilterBuilderLike, type GeoIndexDefinitionLike, type GeoPoint, type GeoScoredDocument, type GroupByEntry, type GroupByOptions, type GuardableSchema$1 as GuardableSchema, IDEMPOTENCY_TABLE, type IdGenerator, type IdempotentRecord, type ImportError, type ImportShardAdminArgs, type ImportShardArgs, type ImportShardResult, type IncrementalMaterializeResult, type IndexDefinitionLike, type IndexKeyEntry, type IndexRangeBuilderLike, type KeyRange, type LifecycleDispatchInfo, type LifecycleEvent, MAIL_RETENTION, MAIL_TABLE, MAX_DURABLE_STREAM_BYTES, MAX_DURABLE_STREAM_CHUNKS, MAX_PAGE_SIZE, MAX_SQL_ROWS, type MaskColumnMetadata, type MaskPoliciesResult, type MaterializeResult, type MigrationDirection, type MigrationRunResult, type MigrationStatus, type MigrationStatusRow, type MutationDelta, type NestedWith, NotFoundError, NotUniqueError, type OnDeleteActionLike, type OrderByClause, type OrderByInput, type OrderKey, OwnerRelay, type OwnerRelayFrame, type PaginationOptions, type PitrBookmarkResult, type PitrRestoreArgs, type PitrRestoreResult, type PitrStorage, type PokeFrameMeta, type PromotionState, type PromotionThresholds, QUEUE_TABLE, type QueryArgs, type QueryPage, type QueueMessageOutcome, type QueueMessageRow, type QueueMetadata, type QueuesResult, RANK_TIEBREAK, REACTOR_STATE_TABLE, RELATION_EXISTS_KEY, RELATION_FUNCTION_PREFIX, REPROJECTION_MIGRATION_PREFIX, RLS_UNWRAP_SYMBOL, type RankBeforeOptions, type RankBeforeResult, type RankDirection, type RankIndexDefinitionLike, type RankOptions, type RankPage, type RankPageComputation, type RankPageDeps, type RankPageOptions, type RankPageRow, type RankPageRowKey, type RankResult, type RankSortKeyLike, ReactiveCache, type ReactiveCacheOptions, type ReactorDispatchResult, type ReactorMetadata, type ReactorState, type ReactorStats, type ReactorsResult, type ReadFootprint, type ReadHook, type ReadTablePageOptions, type RecordMailInput, type RecordQueueMessageInput, type RelationDefinitionLike, type RelationExistsMarker, type RelayAttach, type RelayDetach, type RelayFrame, type RelayHost, RelayMember, type RelayShapePoke, type RelayShapeSeed, type RelayShapeSubscribe, type RenderedSql, type ReplicaFollowerHost, type ReplicaOwnerHost, type ReplicaReadiness, type ResolveRelationPredicatesOptions, type ResolveWithOptions, type ResolveWithResult, type ResolvedShape, type RestrictableQueryOptions, type RlsPoliciesResult, type RlsPolicyMetadata, RlsRequiredError, type RlsRoleMetadata, type RpcRequest, type RunDataMigrationOptions, type RunTriggersOptions, SCAN_DEP, SCHEMA_HISTORY_MAX_VERSIONS, SEARCH_STATE_TABLE, SHAPE_POKE_CURSOR_TABLE, type SchedulableWorkflowReferenceLike, type ScheduledFunctionDoc, type SchedulerLike, type SchemaLike, type ScoredDocument, type SearchFilterBuilderLike, type SearchIndexDefinitionLike, type SearchScoredDocument, type SelectMatchingIdsOptions, type ServerDefaultContextLike, type SettingEntry, type SettingKind, type SettingsResult, type ShapePokePart, type ShapeRow, type ShapeRowOp, type ShapeSubscriptionQuery, type ShardRankPageResult, ShardRunner, type ShardRunnerOptions, type ShardSiblingHost, type ShardSocketLike, type SocketAttachment, type SortDirection, type SourceClientLike, type SourceCursorLike, type SourceRefresh, type SqlConsoleResult, type SqlCursor, type SqlEngine, type SqlExec, type SqlLintResult, type StorageMetadata, type StorageReference, type StorageReferenceResult, type StorageRuleMetadata, type StorageRulesResult, type StudioFeaturesResult, type SubscriptionConnection, type SubscriptionEnvelope, type SubscriptionIdentity, type SubscriptionInfo, type SubscriptionQuery, type SubscriptionReadFootprint, type SubscriptionsResult, type SystemDatabaseReader, type SystemDoc, type SystemQuery, type SystemReaderOptions, type SystemReaderSchedulerLike, type SystemReaderStorageLike, type SystemTableName, type TableColumnsResult, type TableDefinitionLike, type TableIndexInfo, type TableIndexesResult, type TableInfo, type TablePage, type TableReaderLike, type TablesColumnsResult, type TablesIndexesResult, type TransactionHeadroom, TransactionHeadroomTracker, type TransactionLimits, type TransactionSqlLike, type TriggerContextLike, type TriggerDefinitionLike, type TriggerEventLike, type TriggerOpLike, type TriggerTimingLike, type TtlSweepSpec, type ValidatorLike, type WhereInput, type WhereSqlStrategy, type WithInput, type WorkflowInstanceState, type WorkflowInstanceStatusResult, type WorkflowMetadata, type WorkflowsResult, type WriteEvent, type WriteHook, advanceClientWatermark, aggUpsertSql, aggregateSqlFunction, aggregateTableName, allocateCommitSeq, appendAuditEntry, appendCdcChange, appendStreamChunk, applyCdcChanges, applyOnDelete, applySelect, armRestore, assertFlatPredicate, assertReadonly, assertShapeShardable, assertValidClientId, awaitWsDrain, backfillAggregateIndexes, backfillRankIndexes, backfillSearchIndexes, backfillSearchIndexesForTable, boundingBoxCenter, boundingBoxGeohashes, buildIndexRange, buildPokeFrames, buildReprojectionMigration, buildSeekBeforeWhere, buildSeekWhere, buildSettings, bumpCdcEpoch, claimStreamRun, clampPromotionThresholds, clearCapturedMail, clearMemoryTables, clearQueueMessages, coerceAggregateNumber, compileWhereSql, computeRankPage, containsRelationPredicate, countLegacyRows, coveringGeohashes, createCompanionSync, createDependencyTracker, createFanoutCounters, createIndexSql, createReadFootprint, createRelayLink, createReplicaLink, createShardCtxDb, createSystemReader, decideDurableAttach, decodeCursor, deleteGlobalShapeSnapshot, deleteGlobalShapeSnapshotsForConnection, deleteShapePokeCursor, deleteShapePokeCursorsForConnection, deleteStreamRun, depKey, diffExternalSource, diffGlobalMembership, distinctValues, encodeAggregateKey, encodeCursor, encodeGeohash, encodePartitionKey, encodeRowsPatch, ensureAuditTable, ensureMailTable, exportShardRows, exportShardTable, facetColumn, fanOutScalarCounts, findStorageReferences, finishStreamRun, foldAggregateTally, gateReplicaDispatch, geoTableName, guardWriter, handleReplicaControl, hasTrigger, haversineMeters, hydrateDocsById, importShardRows, indexKeysForRow, isDevEnvironment, isFtsAvailable, isLossyBody, isMemoryTable, isRelationPredicate, isSoftDeleted, isSourceDue, jsonPath, jsonPathSql, keysTouchRanges, liftSourceId, lintReadonlySql, listReactorStates, listTables, literalInList, matchesRankStaticWhere, matchesStaticWhere, materializeExternalRows, materializeExternalRowsIncremental, memoryTableNames, mergeChangedKeys, mergeWhere, migrateCdcLog, migrateCdcMeta, migrateClientWatermark, migrateCommitSeq, migrateDurableStreams, migrateGlobalShapeSnapshot, migrateIdempotency, migrateReactorState, migrateSearchState, migrateShapePokeCursor, minCdcSeq, nextPromotionState, normalizeCountArgument, normalizeIdStructurally, normalizeOrderKeys, normalizeSourceDocument, normalizeSourceValue, param, parseExportShardArgs, parseImportShardArgs, planAggregateLookup, pointInBoundingBox, projectColumns, pullExternalSourceIncrementalTick, pullExternalSourceTick, qualifiedJsonPath, qualifiedJsonPathSql, quoteIdentifier, rankKeyFromDocument as rankKeyFromDoc, rankTableName, reactiveCacheKey, reactorNeedsRun, readAggregateValue, readAuditLog, readBookmark, readCapturedMail, readCdcChanges, readCdcCursor, readCdcEpoch, readClientWatermark, readCommitSeq, readExternalSourceBaseline, readGlobalShapeSnapshot, readIdempotent, readMigrationStatus, readQueueMessageById, readQueueMessages, readReactorState, readSchemaHistory, readSchemaVersion, readSearchBackfillState, readShapePokeCursor, readStreamChunks, readStreamRun, readTablePage, recordCapturedMail, recordChangedKeys, recordFanoutPass, recordQueueMessages, recordSchemaVersion, relationHooks, relayCountFor, renderSql, reprojectableFields, reprojectionMigrationId, reprojectionTables, resolveRankPartition, resolveRelationPredicates, resolveWith, rowToDocument, runDataMigration, runDrizzle, runExternalSourceTick, runReadonlySql, runRowValidators, runShardMigrations, runSocketPool, runSql, runTriggers, selectExpiredIds, selectExportTables, selectIndexForAggregate, selectIndexForCount, selectIndexForGroupBy, selectMatchingIds, selectShapeMemberIds, selectShapeRows, serializeSqlValue, shapeRoutingKey, softDeleteScope, sortColumnName, sqliteInList, stableStringify, stableWireKey, subscriptionFrames, subscriptionListDeltas, summarizeFanoutTopics, summarizeSubscriptions, tableColumns, tableFromDepKey, throwingScheduler, trimCdcChanges, trimIdempotent, trimStreamRuns, tryRowToDocument, trySendFrame, unionAll, validateImportRow, writeGlobalShapeSnapshot, writeIdempotent, writeReactorState, writeSearchBackfillState, writeShapePokeCursor, writeTouchesMemo };
|
|
2299
|
+
export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX, AGGREGATE_SQL_FUNCTION, AGG_COUNT, AGG_KEY, AGG_VALUE, AUDIT_LOG_TABLE, type AdvisorProcedure, type AdvisorProceduresResult, type AdvisoriesResult, type AdvisoryFinding, type AggregateIndexDefinitionLike, type AggregateOp, type AggregateOptions, type AggregateResult, type AggregateTally, type AppendAuditEntry, type ApplyOnDeleteOptions$1 as ApplyOnDeleteOptions, type AuditEntry, type AuditLogResult, type BroadcastDelta, CDC_LOG_TABLE, CDC_LOG_TABLE_SEQ_INDEX, CDC_META_TABLE, CLIENT_WATERMARK_TABLE, COMMIT_SEQ_FIELD, COMMIT_SEQ_TABLE, type CacheEntry, type CapturedMailRow, type CdcChange, type CdcChangeKey, type ChangedKeys, type Clock, type ColumnMeta, type ColumnMetaLike, type CompanionSync, type CompanionSyncDeps, ConflictError, type ConflictKind, type CountArgs, CountRlsUnsupportedError, type CreateWorkflowInstanceResult, type CrossShardReadArgs, type CtxDbOptions, DATA_MIGRATION_STATE_TABLE, DEFAULT_FANOUT_TOPIC_LIMIT, DEFAULT_MAX_RELATION_KEYS, DEFAULT_MAX_RELAYS, DEFAULT_PROMOTION_THRESHOLDS, DEFAULT_TRANSACTION_LIMITS, DOC_COLUMN, type DataMigrationDocument, type DataMigrationLike, type DataMigrationTransform, type DatabaseWriterLike, type DependencyTracker, type DeployInfo, type DurableAttachDecision, type DurableStreamAttach, type DurableStreamRun, DurableStreamRunner, type DurableStreamSink, type ExportRow, type ExportShardAdminArgs, type ExportShardArgs, type ExternalSourceDiffResult, type ExternalSourceLike, FLAGS_FUNCTION_PREFIX, type FacetColumnOptions, type FacetColumnResult, type FacetValue, type FanoutMetricsResult, type FanoutPathCounters, type FanoutTopicStat, type FieldOperators, type FilterClause, type FilterOperator, type FlagEvaluation, type FlagsResult, type FunctionCallStat, type FunctionScanAttribution, type FunctionStatsResult, GEO_DEFAULT_PRECISION, GLOBAL_SHAPE_SNAPSHOT_TABLE, type GeoBoundingBox, type GeoFilterBuilderLike, type GeoIndexDefinitionLike, type GeoPoint, type GeoScoredDocument, type GlobalPollCounters, GlobalPollTick, type GroupByEntry, type GroupByOptions, type GuardableSchema$1 as GuardableSchema, IDEMPOTENCY_TABLE, type IdGenerator, type IdempotentRecord, type ImportError, type ImportShardAdminArgs, type ImportShardArgs, type ImportShardResult, type IncrementalMaterializeResult, type IndexDefinitionLike, type IndexKeyEntry, type IndexRangeBuilderLike, type KeyRange, type LifecycleDispatchInfo, type LifecycleEvent, MAIL_RETENTION, MAIL_TABLE, MAX_DURABLE_STREAM_BYTES, MAX_DURABLE_STREAM_CHUNKS, MAX_PAGE_SIZE, MAX_SQL_ROWS, type MaskColumnMetadata, type MaskPoliciesResult, type MaterializeResult, type MigrationDirection, type MigrationRunResult, type MigrationStatus, type MigrationStatusRow, type MutationDelta, type NestedWith, NotFoundError, NotUniqueError, type OnDeleteActionLike, type OrderByClause, type OrderByInput, type OrderKey, OwnerRelay, type OwnerRelayFrame, type PaginationOptions, type PitrBookmarkResult, type PitrRestoreArgs, type PitrRestoreResult, type PitrStorage, type PokeFrameMeta, type PromotionState, type PromotionThresholds, QUEUE_TABLE, type QueryArgs, type QueryPage, type QueueMessageOutcome, type QueueMessageRow, type QueueMetadata, type QueuesResult, RANK_TIEBREAK, REACTOR_STATE_TABLE, RELATION_EXISTS_KEY, RELATION_FUNCTION_PREFIX, REPROJECTION_MIGRATION_PREFIX, RLS_UNWRAP_SYMBOL, type RankBeforeOptions, type RankBeforeResult, type RankDirection, type RankIndexDefinitionLike, type RankOptions, type RankPage, type RankPageComputation, type RankPageDeps, type RankPageOptions, type RankPageRow, type RankPageRowKey, type RankResult, type RankSortKeyLike, ReactiveCache, type ReactiveCacheOptions, type ReactorDispatchResult, type ReactorMetadata, type ReactorState, type ReactorStats, type ReactorsResult, type ReadFootprint, type ReadHook, type ReadTablePageOptions, type RecordMailInput, type RecordQueueMessageInput, type RelationDefinitionLike, type RelationExistsMarker, type RelayAttach, type RelayDetach, type RelayFrame, type RelayHost, RelayMember, type RelayShapePoke, type RelayShapeSeed, type RelayShapeSubscribe, type RenderedSql, type ReplicaFollowerHost, type ReplicaOwnerHost, type ReplicaReadiness, type ResolveRelationPredicatesOptions, type ResolveWithOptions, type ResolveWithResult, type ResolvedShape, type RestrictableQueryOptions, type RlsPoliciesResult, type RlsPolicyMetadata, RlsRequiredError, type RlsRoleMetadata, type RpcRequest, type RunDataMigrationOptions, type RunTriggersOptions, SCAN_DEP, SCHEMA_HISTORY_MAX_VERSIONS, SEARCH_STATE_TABLE, SHAPE_POKE_CURSOR_TABLE, type SchedulableWorkflowReferenceLike, type ScheduledFunctionDoc, type SchedulerLike, type SchemaLike, type ScoredDocument, type SearchBackfillProgress, type SearchFilterBuilderLike, type SearchIndexDefinitionLike, type SearchScoredDocument, type SelectMatchingIdsOptions, type ServerDefaultContextLike, type SettingEntry, type SettingKind, type SettingsResult, ShapeDiffCache, type ShapePokePart, type ShapeProbeCounters, type ShapeRow, type ShapeRowOp, type ShapeSubscriptionQuery, type ShardRankPageResult, ShardRunner, type ShardRunnerOptions, type ShardSiblingHost, type ShardSocketLike, type SocketAttachment, type SortDirection, type SourceClientLike, type SourceCursorLike, type SourceRefresh, type SqlConsoleResult, type SqlCursor, type SqlEngine, type SqlExec, type SqlLintResult, type StorageMetadata, type StorageReference, type StorageReferenceResult, type StorageRuleMetadata, type StorageRulesResult, type StudioFeaturesResult, type SubscriptionConnection, type SubscriptionEnvelope, type SubscriptionIdentity, type SubscriptionInfo, type SubscriptionQuery, type SubscriptionReadFootprint, type SubscriptionsResult, type SystemDatabaseReader, type SystemDoc, type SystemQuery, type SystemReaderOptions, type SystemReaderSchedulerLike, type SystemReaderStorageLike, type SystemTableName, type TableColumnsResult, type TableDefinitionLike, type TableIndexInfo, type TableIndexesResult, type TableInfo, type TablePage, type TableReaderLike, type TablesColumnsResult, type TablesIndexesResult, type TransactionHeadroom, TransactionHeadroomTracker, type TransactionLimits, type TransactionSqlLike, type TriggerContextLike, type TriggerDefinitionLike, type TriggerEventLike, type TriggerOpLike, type TriggerTimingLike, type TtlSweepSpec, UNVOUCHABLE_DEP, type ValidatorLike, type WhereInput, type WhereSqlStrategy, type WithInput, type WorkflowInstanceState, type WorkflowInstanceStatusResult, type WorkflowMetadata, type WorkflowsResult, type WriteEvent, type WriteHook, advanceClientWatermark, aggUpsertSql, aggregateSqlFunction, aggregateTableName, allocateCommitSeq, appendAuditEntry, appendCdcChange, appendStreamChunk, applyCdcChanges, applyOnDelete, applySelect, armRestore, assertFlatPredicate, assertReadonly, assertShapeShardable, assertValidClientId, awaitWsDrain, backfillAggregateIndexes, backfillRankIndexes, backfillSearchIndexes, backfillSearchIndexesForTable, boundingBoxCenter, boundingBoxGeohashes, buildIndexRange, buildPokeFrames, buildReprojectionMigration, buildSeekBeforeWhere, buildSeekWhere, buildSettings, buildShapeDiff, bumpCdcEpoch, cdcCanVouchFor, cdcSeqLeavingRows, cdcTouchesTables, cdcTrimmedError, claimStreamRun, clampPromotionThresholds, clearCapturedMail, clearMemoryTables, clearQueueMessages, coerceAggregateNumber, compactCdcDocs, compileWhereSql, computeRankPage, containsRelationPredicate, countLegacyRows, coveringGeohashes, createCompanionSync, createDependencyTracker, createFanoutCounters, createGlobalPollCounters, createIndexSql, createReadFootprint, createRelayLink, createReplicaLink, createShapeDiffCache, createShapeProbeCounters, createShardCtxDb, createSystemReader, cursorBelowRetainedFloor, decideDurableAttach, decodeCursor, deleteGlobalShapeSnapshot, deleteGlobalShapeSnapshotsForConnection, deleteShapePokeCursor, deleteShapePokeCursorsForConnection, deleteStreamRun, depKey, diffExternalSource, diffGlobalMembership, distinctValues, encodeAggregateKey, encodeCursor, encodeGeohash, encodePartitionKey, encodeRowsPatch, ensureAuditTable, ensureMailTable, envOptionalPositiveInt, envPositiveInt, exportShardRows, exportShardTable, facetColumn, fanOutScalarCounts, findStorageReferences, finishStreamRun, foldAggregateTally, gateReplicaDispatch, geoTableName, globalShapeReadKey, guardWriter, handleReplicaControl, hasTrigger, haversineMeters, hydrateDocsById, importShardRows, indexKeysForRow, isDevEnvironment, isFtsAvailable, isLossyBody, isMemoryTable, isRelationPredicate, isSoftDeleted, isSourceDue, jsonPath, jsonPathSql, keysTouchRanges, liftSourceId, lintReadonlySql, listReactorStates, listTables, literalInList, markUnvouchableReads, matchesRankStaticWhere, matchesStaticWhere, materializeExternalRows, materializeExternalRowsIncremental, memoryTableNames, mergeChangedKeys, mergeWhere, migrateCdcLog, migrateCdcMeta, migrateClientWatermark, migrateCommitSeq, migrateDurableStreams, migrateGlobalShapeSnapshot, migrateIdempotency, migrateReactorState, migrateSearchState, migrateShapePokeCursor, minCdcReplayableSeq, minCdcSeq, minShapePokeCursor, nextPromotionState, normalizeCountArgument, normalizeIdStructurally, normalizeOrderKeys, normalizeSourceDocument, normalizeSourceValue, param, parseExportShardArgs, parseImportShardArgs, planAggregateLookup, pointInBoundingBox, projectColumns, pullExternalSourceIncrementalTick, pullExternalSourceTick, qualifiedJsonPath, qualifiedJsonPathSql, quoteIdentifier, rankKeyFromDocument as rankKeyFromDoc, rankTableName, reactiveCacheKey, reactorNeedsRun, readAggregateValue, readAuditLog, readBookmark, readCapturedMail, readCdcChangeKeys, readCdcChanges, readCdcCursor, readCdcEpoch, readClientWatermark, readCommitSeq, readExternalSourceBaseline, readGlobalShapeSnapshot, readIdempotent, readMigrationStatus, readQueueMessageById, readQueueMessages, readReactorState, readSchemaHistory, readSchemaVersion, readSearchBackfillState, readShapePokeCursor, readStreamChunks, readStreamRun, readTablePage, recordCapturedMail, recordChangedKeys, recordFanoutPass, recordGlobalPollPass, recordQueueMessages, recordSchemaVersion, recordShapeProbePass, relationHooks, relayCountFor, renderSql, reprojectableFields, reprojectionMigrationId, reprojectionTables, resolveRankPartition, resolveRelationPredicates, resolveWith, rowToDocument, runDataMigration, runDrizzle, runExternalSourceTick, runReadonlySql, runRowValidators, runShardMigrations, runSocketPool, runSql, runTriggers, selectExpiredIds, selectExportTables, selectIndexForAggregate, selectIndexForCount, selectIndexForGroupBy, selectMatchingIds, selectShapeMembers, selectShapeRows, serializeSqlValue, shapeRoutingKey, softDeleteScope, sortColumnName, sqliteInList, stableStringify, stableWireKey, subscriptionFrames, subscriptionListDeltas, summarizeFanoutTopics, summarizeSubscriptions, tableColumns, tableFromDepKey, throwingScheduler, trimCdcChanges, trimIdempotent, trimStreamRuns, tryRowToDocument, trySendFrame, unionAll, validateImportRow, writeGlobalShapeSnapshot, writeIdempotent, writeReactorState, writeSearchBackfillState, writeShapePokeCursor, writeTouchesMemo };
|