@event-driven-io/emmett-sqlite 0.43.0-beta.13 → 0.43.0-beta.14
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/cli.cjs +0 -1
- package/dist/cli.d.cts +1 -2
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +1 -1
- package/dist/cloudflare.cjs +16 -16
- package/dist/cloudflare.cjs.map +1 -1
- package/dist/cloudflare.d.cts +9 -10
- package/dist/cloudflare.d.ts +9 -10
- package/dist/cloudflare.js +18 -19
- package/dist/cloudflare.js.map +1 -1
- package/dist/index-2i8q-ZKl.d.ts +415 -0
- package/dist/index-CqxXzmd1.d.cts +415 -0
- package/dist/index.cjs +1164 -2613
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -243
- package/dist/index.d.ts +2 -243
- package/dist/index.js +1090 -2586
- package/dist/index.js.map +1 -1
- package/dist/sqlite3.cjs +14 -14
- package/dist/sqlite3.cjs.map +1 -1
- package/dist/sqlite3.d.cts +8 -9
- package/dist/sqlite3.d.ts +8 -9
- package/dist/sqlite3.js +14 -15
- package/dist/sqlite3.js.map +1 -1
- package/package.json +10 -10
- package/dist/cli.cjs.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/sqliteProjection-BrbKryzB.d.cts +0 -150
- package/dist/sqliteProjection-BrbKryzB.d.ts +0 -150
package/dist/index.d.cts
CHANGED
|
@@ -1,243 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { PongoDocument, PongoDBCollectionOptions, PongoClient, WithId, PongoFilter } from '@event-driven-io/pongo';
|
|
4
|
-
import { a as SQLiteEventStore, b as SQLiteReadEventMetadata, c as SQLiteProjectionHandlerContext, d as SQLiteProjectionDefinition, A as AnyEventStoreDriver, I as InferOptionsFromEventStoreDriver } from './sqliteProjection-BrbKryzB.cjs';
|
|
5
|
-
export { C as CreateEventStoreSchemaOptions, e as EventHandler, f as EventStoreSchemaMigrationOptions, g as SQLiteEventStoreDefaultStreamVersion, S as SQLiteEventStoreOptions, h as SQLiteProjectionHandler, i as SQLiteProjectionHandlerOptions, j as SQLiteRawBatchSQLProjection, k as SQLiteRawSQLProjection, l as SQLiteReadEvent, m as SQLiteStreamExistsOptions, n as createEventStoreSchema, o as getSQLiteEventStore, p as handleProjections, q as messagesTableSQL, r as processorsTableSQL, s as projectionsTableSQL, t as schemaSQL, u as sqliteProjection, v as sqliteRawBatchSQLProjection, w as sqliteRawSQLProjection, x as streamExists, y as streamsTableSQL } from './sqliteProjection-BrbKryzB.cjs';
|
|
6
|
-
import { SQL, SQLExecutor, Dumbo, QueryResultRow } from '@event-driven-io/dumbo';
|
|
7
|
-
import { AnySQLiteConnection } from '@event-driven-io/dumbo/sqlite';
|
|
8
|
-
|
|
9
|
-
type AppendEventResult = {
|
|
10
|
-
success: true;
|
|
11
|
-
nextStreamPosition: bigint;
|
|
12
|
-
lastGlobalPosition: bigint;
|
|
13
|
-
} | {
|
|
14
|
-
success: false;
|
|
15
|
-
};
|
|
16
|
-
declare const appendToStream: <MessageType extends Event>(connection: AnySQLiteConnection, streamName: string, streamType: string, messages: MessageType[], options?: AppendToStreamOptions & {
|
|
17
|
-
partition?: string;
|
|
18
|
-
onBeforeCommit?: BeforeEventStoreCommitHandler<SQLiteEventStore, {
|
|
19
|
-
connection: AnySQLiteConnection;
|
|
20
|
-
}>;
|
|
21
|
-
}) => Promise<AppendEventResult>;
|
|
22
|
-
|
|
23
|
-
declare const schema_0_41_0: SQL[];
|
|
24
|
-
|
|
25
|
-
declare const migration_0_42_0_SQLs: SQL[];
|
|
26
|
-
declare const migration_0_42_0_FromSubscriptionsToProcessors: (execute: SQLExecutor) => Promise<void>;
|
|
27
|
-
|
|
28
|
-
declare const schema_0_42_0: SQL[];
|
|
29
|
-
|
|
30
|
-
type ReadLastMessageGlobalPositionResult = {
|
|
31
|
-
currentGlobalPosition: bigint | null;
|
|
32
|
-
};
|
|
33
|
-
declare const readLastMessageGlobalPosition: (execute: SQLExecutor, options?: {
|
|
34
|
-
partition?: string;
|
|
35
|
-
}) => Promise<ReadLastMessageGlobalPositionResult>;
|
|
36
|
-
|
|
37
|
-
type ReadMessagesBatchOptions = ({
|
|
38
|
-
after: bigint;
|
|
39
|
-
batchSize: number;
|
|
40
|
-
} | {
|
|
41
|
-
from: bigint;
|
|
42
|
-
batchSize: number;
|
|
43
|
-
} | {
|
|
44
|
-
to: bigint;
|
|
45
|
-
batchSize: number;
|
|
46
|
-
} | {
|
|
47
|
-
from: bigint;
|
|
48
|
-
to: bigint;
|
|
49
|
-
}) & {
|
|
50
|
-
partition?: string;
|
|
51
|
-
serializer: JSONSerializer;
|
|
52
|
-
};
|
|
53
|
-
type ReadMessagesBatchResult<MessageType extends Message, MessageMetadataType extends RecordedMessageMetadata = RecordedMessageMetadata> = {
|
|
54
|
-
currentGlobalPosition: bigint;
|
|
55
|
-
messages: RecordedMessage<MessageType, MessageMetadataType>[];
|
|
56
|
-
areMessagesLeft: boolean;
|
|
57
|
-
};
|
|
58
|
-
declare const readMessagesBatch: <MessageType extends Message, RecordedMessageMetadataType extends RecordedMessageMetadataWithGlobalPosition = RecordedMessageMetadataWithGlobalPosition>(execute: SQLExecutor, options: ReadMessagesBatchOptions) => Promise<ReadMessagesBatchResult<MessageType, RecordedMessageMetadataType>>;
|
|
59
|
-
|
|
60
|
-
type ReadProcessorCheckpointResult = {
|
|
61
|
-
lastProcessedCheckpoint: ProcessorCheckpoint | null;
|
|
62
|
-
};
|
|
63
|
-
declare const readProcessorCheckpoint: (execute: SQLExecutor, options: {
|
|
64
|
-
processorId: string;
|
|
65
|
-
partition?: string;
|
|
66
|
-
}) => Promise<ReadProcessorCheckpointResult>;
|
|
67
|
-
|
|
68
|
-
declare const readStream: <EventType extends Event, EventPayloadType extends Event = EventType>(execute: SQLExecutor, streamId: string, options: ReadStreamOptions<EventType, EventPayloadType> & {
|
|
69
|
-
partition?: string;
|
|
70
|
-
serializer: JSONSerializer;
|
|
71
|
-
}) => Promise<ReadStreamResult<EventType, ReadEventMetadataWithGlobalPosition>>;
|
|
72
|
-
|
|
73
|
-
type StoreProcessorCheckpointResult = {
|
|
74
|
-
success: true;
|
|
75
|
-
newCheckpoint: ProcessorCheckpoint | null;
|
|
76
|
-
} | {
|
|
77
|
-
success: false;
|
|
78
|
-
reason: 'IGNORED' | 'MISMATCH';
|
|
79
|
-
};
|
|
80
|
-
declare function storeProcessorCheckpoint(execute: SQLExecutor, options: {
|
|
81
|
-
processorId: string;
|
|
82
|
-
version: number | undefined;
|
|
83
|
-
newCheckpoint: ProcessorCheckpoint | null;
|
|
84
|
-
lastProcessedCheckpoint: ProcessorCheckpoint | null;
|
|
85
|
-
partition?: string;
|
|
86
|
-
processorInstanceId?: string;
|
|
87
|
-
}): Promise<StoreProcessorCheckpointResult>;
|
|
88
|
-
|
|
89
|
-
declare const emmettPrefix = "emt";
|
|
90
|
-
declare const globalTag = "global";
|
|
91
|
-
declare const defaultTag = "emt:default";
|
|
92
|
-
declare const unknownTag = "emt:unknown";
|
|
93
|
-
declare const globalNames: {
|
|
94
|
-
module: string;
|
|
95
|
-
};
|
|
96
|
-
declare const streamsTable: {
|
|
97
|
-
name: string;
|
|
98
|
-
columns: {
|
|
99
|
-
partition: {
|
|
100
|
-
name: string;
|
|
101
|
-
};
|
|
102
|
-
isArchived: {
|
|
103
|
-
name: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
declare const messagesTable: {
|
|
108
|
-
name: string;
|
|
109
|
-
columns: {
|
|
110
|
-
partition: {
|
|
111
|
-
name: string;
|
|
112
|
-
};
|
|
113
|
-
isArchived: {
|
|
114
|
-
name: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
declare const processorsTable: {
|
|
119
|
-
name: string;
|
|
120
|
-
};
|
|
121
|
-
declare const projectionsTable: {
|
|
122
|
-
name: string;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
type PongoProjectionHandlerContext = SQLiteProjectionHandlerContext & {
|
|
126
|
-
pongo: PongoClient;
|
|
127
|
-
};
|
|
128
|
-
type PongoWithNotNullDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata> = ((document: Document, event: ReadEvent<EventType, EventMetaDataType>) => Document | null) | ((document: Document, event: ReadEvent<EventType>) => Promise<Document | null>);
|
|
129
|
-
type PongoWithNullableDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata> = ((document: Document | null, event: ReadEvent<EventType, EventMetaDataType>) => Document | null) | ((document: Document | null, event: ReadEvent<EventType>) => Promise<Document | null>);
|
|
130
|
-
type PongoDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata> = PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType> | PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
131
|
-
type PongoProjectionOptions<EventType extends Event, EventPayloadType extends Event = EventType> = {
|
|
132
|
-
name: string;
|
|
133
|
-
kind?: string;
|
|
134
|
-
version?: number;
|
|
135
|
-
handle: (events: ReadEvent<EventType, SQLiteReadEventMetadata>[], context: PongoProjectionHandlerContext) => Promise<void>;
|
|
136
|
-
canHandle: CanHandle<EventType>;
|
|
137
|
-
truncate?: TruncateProjection<PongoProjectionHandlerContext>;
|
|
138
|
-
init?: (context: PongoProjectionHandlerContext) => void | Promise<void>;
|
|
139
|
-
eventsOptions?: {
|
|
140
|
-
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
141
|
-
};
|
|
142
|
-
} & JSONSerializationOptions;
|
|
143
|
-
declare const pongoProjection: <EventType extends Event, EventPayloadType extends Event = EventType>({ name, kind, version, truncate, handle, canHandle, eventsOptions, }: PongoProjectionOptions<EventType, EventPayloadType>) => SQLiteProjectionDefinition<EventType, EventPayloadType>;
|
|
144
|
-
type PongoMultiStreamProjectionOptions<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata, EventPayloadType extends Event = EventType, DocumentPayload extends PongoDocument = Document> = {
|
|
145
|
-
kind?: string;
|
|
146
|
-
canHandle: CanHandle<EventType>;
|
|
147
|
-
version?: number;
|
|
148
|
-
collectionName: string;
|
|
149
|
-
collectionOptions?: PongoDBCollectionOptions<Document, DocumentPayload>;
|
|
150
|
-
eventsOptions?: {
|
|
151
|
-
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
152
|
-
};
|
|
153
|
-
getDocumentId: (event: ReadEvent<EventType>) => string;
|
|
154
|
-
} & ({
|
|
155
|
-
evolve: PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
156
|
-
} | {
|
|
157
|
-
evolve: PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
158
|
-
initialState: () => Document;
|
|
159
|
-
}) & JSONSerializationOptions;
|
|
160
|
-
declare const pongoMultiStreamProjection: <Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata, EventPayloadType extends Event = EventType>(options: PongoMultiStreamProjectionOptions<Document, EventType, EventMetaDataType, EventPayloadType>) => SQLiteProjectionDefinition<EventType, EventPayloadType>;
|
|
161
|
-
type PongoSingleStreamProjectionOptions<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata, EventPayloadType extends Event = EventType, DocumentPayload extends PongoDocument = Document> = {
|
|
162
|
-
canHandle: CanHandle<EventType>;
|
|
163
|
-
getDocumentId?: (event: ReadEvent<EventType>) => string;
|
|
164
|
-
version?: number;
|
|
165
|
-
collectionName: string;
|
|
166
|
-
collectionOptions?: PongoDBCollectionOptions<Document, DocumentPayload>;
|
|
167
|
-
eventsOptions?: {
|
|
168
|
-
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
169
|
-
};
|
|
170
|
-
} & ({
|
|
171
|
-
evolve: PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
172
|
-
} | {
|
|
173
|
-
evolve: PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
174
|
-
initialState: () => Document;
|
|
175
|
-
}) & JSONSerializationOptions;
|
|
176
|
-
declare const pongoSingleStreamProjection: <Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata, EventPayloadType extends Event = EventType>(options: PongoSingleStreamProjectionOptions<Document, EventType, EventMetaDataType, EventPayloadType>) => SQLiteProjectionDefinition<EventType, EventPayloadType>;
|
|
177
|
-
|
|
178
|
-
type PongoAssertOptions = {
|
|
179
|
-
inCollection: string;
|
|
180
|
-
inDatabase?: string;
|
|
181
|
-
};
|
|
182
|
-
type FilterOrId<Doc extends PongoDocument | WithId<PongoDocument>> = {
|
|
183
|
-
withId: string;
|
|
184
|
-
} | {
|
|
185
|
-
matchingFilter: PongoFilter<Doc>;
|
|
186
|
-
};
|
|
187
|
-
declare const documentExists: <Doc extends PongoDocument | WithId<PongoDocument>>(document: Doc, options: PongoAssertOptions & FilterOrId<Doc>) => SQLiteProjectionAssert;
|
|
188
|
-
declare const documentsAreTheSame: <Doc extends PongoDocument | WithId<PongoDocument>>(documents: Doc[], options: PongoAssertOptions & FilterOrId<Doc>) => SQLiteProjectionAssert;
|
|
189
|
-
declare const documentsMatchingHaveCount: <Doc extends PongoDocument | WithId<PongoDocument>>(expectedCount: number, options: PongoAssertOptions & FilterOrId<Doc>) => SQLiteProjectionAssert;
|
|
190
|
-
declare const documentMatchingExists: <Doc extends PongoDocument | WithId<PongoDocument>>(options: PongoAssertOptions & FilterOrId<Doc>) => SQLiteProjectionAssert;
|
|
191
|
-
declare const documentDoesNotExist: <Doc extends PongoDocument | WithId<PongoDocument>>(options: PongoAssertOptions & FilterOrId<Doc>) => SQLiteProjectionAssert;
|
|
192
|
-
declare const expectPongoDocuments: {
|
|
193
|
-
fromCollection: <Doc extends PongoDocument | WithId<PongoDocument>>(collectionName: string) => {
|
|
194
|
-
withId: (id: string) => {
|
|
195
|
-
toBeEqual: (document: Doc) => SQLiteProjectionAssert;
|
|
196
|
-
toExist: () => SQLiteProjectionAssert;
|
|
197
|
-
notToExist: () => SQLiteProjectionAssert;
|
|
198
|
-
};
|
|
199
|
-
matching: <Doc_1 extends PongoDocument | WithId<PongoDocument>>(filter: PongoFilter<Doc_1>) => {
|
|
200
|
-
toBeTheSame: (documents: Doc_1[]) => SQLiteProjectionAssert;
|
|
201
|
-
toHaveCount: (expectedCount: number) => SQLiteProjectionAssert;
|
|
202
|
-
toExist: () => SQLiteProjectionAssert;
|
|
203
|
-
notToExist: () => SQLiteProjectionAssert;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
type SQLiteProjectionSpecEvent<EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata> = EventType & {
|
|
209
|
-
metadata?: Partial<EventMetaDataType>;
|
|
210
|
-
};
|
|
211
|
-
type SQLiteProjectionSpecWhenOptions = {
|
|
212
|
-
numberOfTimes: number;
|
|
213
|
-
};
|
|
214
|
-
type SQLiteProjectionAssert = (options: {
|
|
215
|
-
connection: AnySQLiteConnection;
|
|
216
|
-
}) => Promise<void | boolean>;
|
|
217
|
-
type SQLiteProjectionSpecOptions<EventType extends Event, Driver extends AnyEventStoreDriver = AnyEventStoreDriver> = {
|
|
218
|
-
projection: SQLiteProjectionDefinition<EventType>;
|
|
219
|
-
driver: Driver;
|
|
220
|
-
pool?: Dumbo;
|
|
221
|
-
} & InferOptionsFromEventStoreDriver<Driver> & JSONSerializationOptions;
|
|
222
|
-
type SQLiteProjectionSpec<EventType extends Event> = (givenEvents: SQLiteProjectionSpecEvent<EventType>[]) => {
|
|
223
|
-
when: (events: SQLiteProjectionSpecEvent<EventType>[], options?: SQLiteProjectionSpecWhenOptions) => {
|
|
224
|
-
then: (assert: SQLiteProjectionAssert, message?: string) => Promise<void>;
|
|
225
|
-
thenThrows: <ErrorType extends Error = Error>(...args: Parameters<ThenThrows<ErrorType>>) => Promise<void>;
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
declare const SQLiteProjectionSpec: {
|
|
229
|
-
for: <EventType extends Event, Driver extends AnyEventStoreDriver = AnyEventStoreDriver>(options: SQLiteProjectionSpecOptions<EventType, Driver>) => SQLiteProjectionSpec<EventType>;
|
|
230
|
-
};
|
|
231
|
-
declare const eventInStream: <EventType extends Event = Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata>(streamName: string, event: SQLiteProjectionSpecEvent<EventType, EventMetaDataType>) => SQLiteProjectionSpecEvent<EventType, EventMetaDataType>;
|
|
232
|
-
declare const eventsInStream: <EventType extends Event = Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata>(streamName: string, events: SQLiteProjectionSpecEvent<EventType, EventMetaDataType>[]) => SQLiteProjectionSpecEvent<EventType, EventMetaDataType>[];
|
|
233
|
-
declare const newEventsInStream: <EventType extends Event = Event, EventMetaDataType extends SQLiteReadEventMetadata = _event_driven_io_emmett.RecordedMessageMetadataWithGlobalPosition>(streamName: string, events: SQLiteProjectionSpecEvent<EventType, EventMetaDataType>[]) => SQLiteProjectionSpecEvent<EventType, EventMetaDataType>[];
|
|
234
|
-
declare const assertSQLQueryResultMatches: <T extends QueryResultRow>(sql: SQL, rows: T[]) => SQLiteProjectionAssert;
|
|
235
|
-
declare const expectSQL: {
|
|
236
|
-
query: (sql: SQL) => {
|
|
237
|
-
resultRows: {
|
|
238
|
-
toBeTheSame: <T extends QueryResultRow>(rows: T[]) => SQLiteProjectionAssert;
|
|
239
|
-
};
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
export { type AppendEventResult, type PongoAssertOptions, type PongoDocumentEvolve, type PongoMultiStreamProjectionOptions, type PongoProjectionHandlerContext, type PongoProjectionOptions, type PongoSingleStreamProjectionOptions, type PongoWithNotNullDocumentEvolve, type PongoWithNullableDocumentEvolve, type ReadLastMessageGlobalPositionResult, type ReadMessagesBatchOptions, type ReadMessagesBatchResult, type ReadProcessorCheckpointResult, SQLiteEventStore, type SQLiteProjectionAssert, SQLiteProjectionDefinition, SQLiteProjectionHandlerContext, SQLiteProjectionSpec, type SQLiteProjectionSpecEvent, type SQLiteProjectionSpecOptions, type SQLiteProjectionSpecWhenOptions, SQLiteReadEventMetadata, type StoreProcessorCheckpointResult, appendToStream, assertSQLQueryResultMatches, defaultTag, documentDoesNotExist, documentExists, documentMatchingExists, documentsAreTheSame, documentsMatchingHaveCount, emmettPrefix, eventInStream, eventsInStream, expectPongoDocuments, expectSQL, globalNames, globalTag, messagesTable, migration_0_42_0_FromSubscriptionsToProcessors, migration_0_42_0_SQLs, newEventsInStream, pongoMultiStreamProjection, pongoProjection, pongoSingleStreamProjection, processorsTable, projectionsTable, readLastMessageGlobalPosition, readMessagesBatch, readProcessorCheckpoint, readStream, schema_0_41_0, schema_0_42_0, storeProcessorCheckpoint, streamsTable, unknownTag };
|
|
1
|
+
import { $ as unknownTag, A as PongoProjectionHandlerContext, B as SQLiteEventStoreDefaultStreamVersion, C as documentExists, Ct as schema_0_41_0, D as expectPongoDocuments, E as documentsMatchingHaveCount, F as pongoMultiStreamProjection, G as defaultTag, H as SQLiteReadEvent, I as pongoProjection, J as globalTag, K as emmettPrefix, L as pongoSingleStreamProjection, M as PongoSingleStreamProjectionOptions, N as PongoWithNotNullDocumentEvolve, O as PongoDocumentEvolve, P as PongoWithNullableDocumentEvolve, Q as streamsTable, R as EventHandler, S as documentDoesNotExist, St as migration_0_42_0_SQLs, T as documentsAreTheSame, Tt as appendToStream, U as SQLiteReadEventMetadata, V as SQLiteEventStoreOptions, W as getSQLiteEventStore, X as processorsTable, Y as messagesTable, Z as projectionsTable, _ as handleProjections, _t as readMessagesBatch, a as SQLiteProjectionSpecWhenOptions, at as projectionsTableSQL, b as sqliteRawSQLProjection, bt as schema_0_42_0, c as eventsInStream, ct as SQLiteStreamExistsOptions, d as SQLiteProjectionDefinition, dt as storeProcessorCheckpoint, et as CreateEventStoreSchemaOptions, f as SQLiteProjectionHandler, ft as readStream, g as SQLiteRawSQLProjection, gt as ReadMessagesBatchResult, h as SQLiteRawBatchSQLProjection, ht as ReadMessagesBatchOptions, i as SQLiteProjectionSpecOptions, it as processorsTableSQL, j as PongoProjectionOptions, k as PongoMultiStreamProjectionOptions, l as expectSQL, lt as streamExists, m as SQLiteProjectionHandlerOptions, mt as readProcessorCheckpoint, n as SQLiteProjectionSpec, nt as createEventStoreSchema, o as assertSQLQueryResultMatches, ot as schemaSQL, p as SQLiteProjectionHandlerContext, pt as ReadProcessorCheckpointResult, q as globalNames, r as SQLiteProjectionSpecEvent, rt as messagesTableSQL, s as eventInStream, st as streamsTableSQL, t as SQLiteProjectionAssert, tt as EventStoreSchemaMigrationOptions, u as newEventsInStream, ut as StoreProcessorCheckpointResult, v as sqliteProjection, vt as ReadLastMessageGlobalPositionResult, w as documentMatchingExists, wt as AppendEventResult, x as PongoAssertOptions, xt as migration_0_42_0_FromSubscriptionsToProcessors, y as sqliteRawBatchSQLProjection, yt as readLastMessageGlobalPosition, z as SQLiteEventStore } from "./index-CqxXzmd1.cjs";
|
|
2
|
+
export { AppendEventResult, CreateEventStoreSchemaOptions, EventHandler, EventStoreSchemaMigrationOptions, PongoAssertOptions, PongoDocumentEvolve, PongoMultiStreamProjectionOptions, PongoProjectionHandlerContext, PongoProjectionOptions, PongoSingleStreamProjectionOptions, PongoWithNotNullDocumentEvolve, PongoWithNullableDocumentEvolve, ReadLastMessageGlobalPositionResult, ReadMessagesBatchOptions, ReadMessagesBatchResult, ReadProcessorCheckpointResult, SQLiteEventStore, SQLiteEventStoreDefaultStreamVersion, SQLiteEventStoreOptions, SQLiteProjectionAssert, SQLiteProjectionDefinition, SQLiteProjectionHandler, SQLiteProjectionHandlerContext, SQLiteProjectionHandlerOptions, SQLiteProjectionSpec, SQLiteProjectionSpecEvent, SQLiteProjectionSpecOptions, SQLiteProjectionSpecWhenOptions, SQLiteRawBatchSQLProjection, SQLiteRawSQLProjection, SQLiteReadEvent, SQLiteReadEventMetadata, SQLiteStreamExistsOptions, StoreProcessorCheckpointResult, appendToStream, assertSQLQueryResultMatches, createEventStoreSchema, defaultTag, documentDoesNotExist, documentExists, documentMatchingExists, documentsAreTheSame, documentsMatchingHaveCount, emmettPrefix, eventInStream, eventsInStream, expectPongoDocuments, expectSQL, getSQLiteEventStore, globalNames, globalTag, handleProjections, messagesTable, messagesTableSQL, migration_0_42_0_FromSubscriptionsToProcessors, migration_0_42_0_SQLs, newEventsInStream, pongoMultiStreamProjection, pongoProjection, pongoSingleStreamProjection, processorsTable, processorsTableSQL, projectionsTable, projectionsTableSQL, readLastMessageGlobalPosition, readMessagesBatch, readProcessorCheckpoint, readStream, schemaSQL, schema_0_41_0, schema_0_42_0, sqliteProjection, sqliteRawBatchSQLProjection, sqliteRawSQLProjection, storeProcessorCheckpoint, streamExists, streamsTable, streamsTableSQL, unknownTag };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,243 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { PongoDocument, PongoDBCollectionOptions, PongoClient, WithId, PongoFilter } from '@event-driven-io/pongo';
|
|
4
|
-
import { a as SQLiteEventStore, b as SQLiteReadEventMetadata, c as SQLiteProjectionHandlerContext, d as SQLiteProjectionDefinition, A as AnyEventStoreDriver, I as InferOptionsFromEventStoreDriver } from './sqliteProjection-BrbKryzB.js';
|
|
5
|
-
export { C as CreateEventStoreSchemaOptions, e as EventHandler, f as EventStoreSchemaMigrationOptions, g as SQLiteEventStoreDefaultStreamVersion, S as SQLiteEventStoreOptions, h as SQLiteProjectionHandler, i as SQLiteProjectionHandlerOptions, j as SQLiteRawBatchSQLProjection, k as SQLiteRawSQLProjection, l as SQLiteReadEvent, m as SQLiteStreamExistsOptions, n as createEventStoreSchema, o as getSQLiteEventStore, p as handleProjections, q as messagesTableSQL, r as processorsTableSQL, s as projectionsTableSQL, t as schemaSQL, u as sqliteProjection, v as sqliteRawBatchSQLProjection, w as sqliteRawSQLProjection, x as streamExists, y as streamsTableSQL } from './sqliteProjection-BrbKryzB.js';
|
|
6
|
-
import { SQL, SQLExecutor, Dumbo, QueryResultRow } from '@event-driven-io/dumbo';
|
|
7
|
-
import { AnySQLiteConnection } from '@event-driven-io/dumbo/sqlite';
|
|
8
|
-
|
|
9
|
-
type AppendEventResult = {
|
|
10
|
-
success: true;
|
|
11
|
-
nextStreamPosition: bigint;
|
|
12
|
-
lastGlobalPosition: bigint;
|
|
13
|
-
} | {
|
|
14
|
-
success: false;
|
|
15
|
-
};
|
|
16
|
-
declare const appendToStream: <MessageType extends Event>(connection: AnySQLiteConnection, streamName: string, streamType: string, messages: MessageType[], options?: AppendToStreamOptions & {
|
|
17
|
-
partition?: string;
|
|
18
|
-
onBeforeCommit?: BeforeEventStoreCommitHandler<SQLiteEventStore, {
|
|
19
|
-
connection: AnySQLiteConnection;
|
|
20
|
-
}>;
|
|
21
|
-
}) => Promise<AppendEventResult>;
|
|
22
|
-
|
|
23
|
-
declare const schema_0_41_0: SQL[];
|
|
24
|
-
|
|
25
|
-
declare const migration_0_42_0_SQLs: SQL[];
|
|
26
|
-
declare const migration_0_42_0_FromSubscriptionsToProcessors: (execute: SQLExecutor) => Promise<void>;
|
|
27
|
-
|
|
28
|
-
declare const schema_0_42_0: SQL[];
|
|
29
|
-
|
|
30
|
-
type ReadLastMessageGlobalPositionResult = {
|
|
31
|
-
currentGlobalPosition: bigint | null;
|
|
32
|
-
};
|
|
33
|
-
declare const readLastMessageGlobalPosition: (execute: SQLExecutor, options?: {
|
|
34
|
-
partition?: string;
|
|
35
|
-
}) => Promise<ReadLastMessageGlobalPositionResult>;
|
|
36
|
-
|
|
37
|
-
type ReadMessagesBatchOptions = ({
|
|
38
|
-
after: bigint;
|
|
39
|
-
batchSize: number;
|
|
40
|
-
} | {
|
|
41
|
-
from: bigint;
|
|
42
|
-
batchSize: number;
|
|
43
|
-
} | {
|
|
44
|
-
to: bigint;
|
|
45
|
-
batchSize: number;
|
|
46
|
-
} | {
|
|
47
|
-
from: bigint;
|
|
48
|
-
to: bigint;
|
|
49
|
-
}) & {
|
|
50
|
-
partition?: string;
|
|
51
|
-
serializer: JSONSerializer;
|
|
52
|
-
};
|
|
53
|
-
type ReadMessagesBatchResult<MessageType extends Message, MessageMetadataType extends RecordedMessageMetadata = RecordedMessageMetadata> = {
|
|
54
|
-
currentGlobalPosition: bigint;
|
|
55
|
-
messages: RecordedMessage<MessageType, MessageMetadataType>[];
|
|
56
|
-
areMessagesLeft: boolean;
|
|
57
|
-
};
|
|
58
|
-
declare const readMessagesBatch: <MessageType extends Message, RecordedMessageMetadataType extends RecordedMessageMetadataWithGlobalPosition = RecordedMessageMetadataWithGlobalPosition>(execute: SQLExecutor, options: ReadMessagesBatchOptions) => Promise<ReadMessagesBatchResult<MessageType, RecordedMessageMetadataType>>;
|
|
59
|
-
|
|
60
|
-
type ReadProcessorCheckpointResult = {
|
|
61
|
-
lastProcessedCheckpoint: ProcessorCheckpoint | null;
|
|
62
|
-
};
|
|
63
|
-
declare const readProcessorCheckpoint: (execute: SQLExecutor, options: {
|
|
64
|
-
processorId: string;
|
|
65
|
-
partition?: string;
|
|
66
|
-
}) => Promise<ReadProcessorCheckpointResult>;
|
|
67
|
-
|
|
68
|
-
declare const readStream: <EventType extends Event, EventPayloadType extends Event = EventType>(execute: SQLExecutor, streamId: string, options: ReadStreamOptions<EventType, EventPayloadType> & {
|
|
69
|
-
partition?: string;
|
|
70
|
-
serializer: JSONSerializer;
|
|
71
|
-
}) => Promise<ReadStreamResult<EventType, ReadEventMetadataWithGlobalPosition>>;
|
|
72
|
-
|
|
73
|
-
type StoreProcessorCheckpointResult = {
|
|
74
|
-
success: true;
|
|
75
|
-
newCheckpoint: ProcessorCheckpoint | null;
|
|
76
|
-
} | {
|
|
77
|
-
success: false;
|
|
78
|
-
reason: 'IGNORED' | 'MISMATCH';
|
|
79
|
-
};
|
|
80
|
-
declare function storeProcessorCheckpoint(execute: SQLExecutor, options: {
|
|
81
|
-
processorId: string;
|
|
82
|
-
version: number | undefined;
|
|
83
|
-
newCheckpoint: ProcessorCheckpoint | null;
|
|
84
|
-
lastProcessedCheckpoint: ProcessorCheckpoint | null;
|
|
85
|
-
partition?: string;
|
|
86
|
-
processorInstanceId?: string;
|
|
87
|
-
}): Promise<StoreProcessorCheckpointResult>;
|
|
88
|
-
|
|
89
|
-
declare const emmettPrefix = "emt";
|
|
90
|
-
declare const globalTag = "global";
|
|
91
|
-
declare const defaultTag = "emt:default";
|
|
92
|
-
declare const unknownTag = "emt:unknown";
|
|
93
|
-
declare const globalNames: {
|
|
94
|
-
module: string;
|
|
95
|
-
};
|
|
96
|
-
declare const streamsTable: {
|
|
97
|
-
name: string;
|
|
98
|
-
columns: {
|
|
99
|
-
partition: {
|
|
100
|
-
name: string;
|
|
101
|
-
};
|
|
102
|
-
isArchived: {
|
|
103
|
-
name: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
declare const messagesTable: {
|
|
108
|
-
name: string;
|
|
109
|
-
columns: {
|
|
110
|
-
partition: {
|
|
111
|
-
name: string;
|
|
112
|
-
};
|
|
113
|
-
isArchived: {
|
|
114
|
-
name: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
declare const processorsTable: {
|
|
119
|
-
name: string;
|
|
120
|
-
};
|
|
121
|
-
declare const projectionsTable: {
|
|
122
|
-
name: string;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
type PongoProjectionHandlerContext = SQLiteProjectionHandlerContext & {
|
|
126
|
-
pongo: PongoClient;
|
|
127
|
-
};
|
|
128
|
-
type PongoWithNotNullDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata> = ((document: Document, event: ReadEvent<EventType, EventMetaDataType>) => Document | null) | ((document: Document, event: ReadEvent<EventType>) => Promise<Document | null>);
|
|
129
|
-
type PongoWithNullableDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata> = ((document: Document | null, event: ReadEvent<EventType, EventMetaDataType>) => Document | null) | ((document: Document | null, event: ReadEvent<EventType>) => Promise<Document | null>);
|
|
130
|
-
type PongoDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata> = PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType> | PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
131
|
-
type PongoProjectionOptions<EventType extends Event, EventPayloadType extends Event = EventType> = {
|
|
132
|
-
name: string;
|
|
133
|
-
kind?: string;
|
|
134
|
-
version?: number;
|
|
135
|
-
handle: (events: ReadEvent<EventType, SQLiteReadEventMetadata>[], context: PongoProjectionHandlerContext) => Promise<void>;
|
|
136
|
-
canHandle: CanHandle<EventType>;
|
|
137
|
-
truncate?: TruncateProjection<PongoProjectionHandlerContext>;
|
|
138
|
-
init?: (context: PongoProjectionHandlerContext) => void | Promise<void>;
|
|
139
|
-
eventsOptions?: {
|
|
140
|
-
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
141
|
-
};
|
|
142
|
-
} & JSONSerializationOptions;
|
|
143
|
-
declare const pongoProjection: <EventType extends Event, EventPayloadType extends Event = EventType>({ name, kind, version, truncate, handle, canHandle, eventsOptions, }: PongoProjectionOptions<EventType, EventPayloadType>) => SQLiteProjectionDefinition<EventType, EventPayloadType>;
|
|
144
|
-
type PongoMultiStreamProjectionOptions<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata, EventPayloadType extends Event = EventType, DocumentPayload extends PongoDocument = Document> = {
|
|
145
|
-
kind?: string;
|
|
146
|
-
canHandle: CanHandle<EventType>;
|
|
147
|
-
version?: number;
|
|
148
|
-
collectionName: string;
|
|
149
|
-
collectionOptions?: PongoDBCollectionOptions<Document, DocumentPayload>;
|
|
150
|
-
eventsOptions?: {
|
|
151
|
-
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
152
|
-
};
|
|
153
|
-
getDocumentId: (event: ReadEvent<EventType>) => string;
|
|
154
|
-
} & ({
|
|
155
|
-
evolve: PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
156
|
-
} | {
|
|
157
|
-
evolve: PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
158
|
-
initialState: () => Document;
|
|
159
|
-
}) & JSONSerializationOptions;
|
|
160
|
-
declare const pongoMultiStreamProjection: <Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata, EventPayloadType extends Event = EventType>(options: PongoMultiStreamProjectionOptions<Document, EventType, EventMetaDataType, EventPayloadType>) => SQLiteProjectionDefinition<EventType, EventPayloadType>;
|
|
161
|
-
type PongoSingleStreamProjectionOptions<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata, EventPayloadType extends Event = EventType, DocumentPayload extends PongoDocument = Document> = {
|
|
162
|
-
canHandle: CanHandle<EventType>;
|
|
163
|
-
getDocumentId?: (event: ReadEvent<EventType>) => string;
|
|
164
|
-
version?: number;
|
|
165
|
-
collectionName: string;
|
|
166
|
-
collectionOptions?: PongoDBCollectionOptions<Document, DocumentPayload>;
|
|
167
|
-
eventsOptions?: {
|
|
168
|
-
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
169
|
-
};
|
|
170
|
-
} & ({
|
|
171
|
-
evolve: PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
172
|
-
} | {
|
|
173
|
-
evolve: PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
174
|
-
initialState: () => Document;
|
|
175
|
-
}) & JSONSerializationOptions;
|
|
176
|
-
declare const pongoSingleStreamProjection: <Document extends PongoDocument, EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata, EventPayloadType extends Event = EventType>(options: PongoSingleStreamProjectionOptions<Document, EventType, EventMetaDataType, EventPayloadType>) => SQLiteProjectionDefinition<EventType, EventPayloadType>;
|
|
177
|
-
|
|
178
|
-
type PongoAssertOptions = {
|
|
179
|
-
inCollection: string;
|
|
180
|
-
inDatabase?: string;
|
|
181
|
-
};
|
|
182
|
-
type FilterOrId<Doc extends PongoDocument | WithId<PongoDocument>> = {
|
|
183
|
-
withId: string;
|
|
184
|
-
} | {
|
|
185
|
-
matchingFilter: PongoFilter<Doc>;
|
|
186
|
-
};
|
|
187
|
-
declare const documentExists: <Doc extends PongoDocument | WithId<PongoDocument>>(document: Doc, options: PongoAssertOptions & FilterOrId<Doc>) => SQLiteProjectionAssert;
|
|
188
|
-
declare const documentsAreTheSame: <Doc extends PongoDocument | WithId<PongoDocument>>(documents: Doc[], options: PongoAssertOptions & FilterOrId<Doc>) => SQLiteProjectionAssert;
|
|
189
|
-
declare const documentsMatchingHaveCount: <Doc extends PongoDocument | WithId<PongoDocument>>(expectedCount: number, options: PongoAssertOptions & FilterOrId<Doc>) => SQLiteProjectionAssert;
|
|
190
|
-
declare const documentMatchingExists: <Doc extends PongoDocument | WithId<PongoDocument>>(options: PongoAssertOptions & FilterOrId<Doc>) => SQLiteProjectionAssert;
|
|
191
|
-
declare const documentDoesNotExist: <Doc extends PongoDocument | WithId<PongoDocument>>(options: PongoAssertOptions & FilterOrId<Doc>) => SQLiteProjectionAssert;
|
|
192
|
-
declare const expectPongoDocuments: {
|
|
193
|
-
fromCollection: <Doc extends PongoDocument | WithId<PongoDocument>>(collectionName: string) => {
|
|
194
|
-
withId: (id: string) => {
|
|
195
|
-
toBeEqual: (document: Doc) => SQLiteProjectionAssert;
|
|
196
|
-
toExist: () => SQLiteProjectionAssert;
|
|
197
|
-
notToExist: () => SQLiteProjectionAssert;
|
|
198
|
-
};
|
|
199
|
-
matching: <Doc_1 extends PongoDocument | WithId<PongoDocument>>(filter: PongoFilter<Doc_1>) => {
|
|
200
|
-
toBeTheSame: (documents: Doc_1[]) => SQLiteProjectionAssert;
|
|
201
|
-
toHaveCount: (expectedCount: number) => SQLiteProjectionAssert;
|
|
202
|
-
toExist: () => SQLiteProjectionAssert;
|
|
203
|
-
notToExist: () => SQLiteProjectionAssert;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
type SQLiteProjectionSpecEvent<EventType extends Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata> = EventType & {
|
|
209
|
-
metadata?: Partial<EventMetaDataType>;
|
|
210
|
-
};
|
|
211
|
-
type SQLiteProjectionSpecWhenOptions = {
|
|
212
|
-
numberOfTimes: number;
|
|
213
|
-
};
|
|
214
|
-
type SQLiteProjectionAssert = (options: {
|
|
215
|
-
connection: AnySQLiteConnection;
|
|
216
|
-
}) => Promise<void | boolean>;
|
|
217
|
-
type SQLiteProjectionSpecOptions<EventType extends Event, Driver extends AnyEventStoreDriver = AnyEventStoreDriver> = {
|
|
218
|
-
projection: SQLiteProjectionDefinition<EventType>;
|
|
219
|
-
driver: Driver;
|
|
220
|
-
pool?: Dumbo;
|
|
221
|
-
} & InferOptionsFromEventStoreDriver<Driver> & JSONSerializationOptions;
|
|
222
|
-
type SQLiteProjectionSpec<EventType extends Event> = (givenEvents: SQLiteProjectionSpecEvent<EventType>[]) => {
|
|
223
|
-
when: (events: SQLiteProjectionSpecEvent<EventType>[], options?: SQLiteProjectionSpecWhenOptions) => {
|
|
224
|
-
then: (assert: SQLiteProjectionAssert, message?: string) => Promise<void>;
|
|
225
|
-
thenThrows: <ErrorType extends Error = Error>(...args: Parameters<ThenThrows<ErrorType>>) => Promise<void>;
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
declare const SQLiteProjectionSpec: {
|
|
229
|
-
for: <EventType extends Event, Driver extends AnyEventStoreDriver = AnyEventStoreDriver>(options: SQLiteProjectionSpecOptions<EventType, Driver>) => SQLiteProjectionSpec<EventType>;
|
|
230
|
-
};
|
|
231
|
-
declare const eventInStream: <EventType extends Event = Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata>(streamName: string, event: SQLiteProjectionSpecEvent<EventType, EventMetaDataType>) => SQLiteProjectionSpecEvent<EventType, EventMetaDataType>;
|
|
232
|
-
declare const eventsInStream: <EventType extends Event = Event, EventMetaDataType extends SQLiteReadEventMetadata = SQLiteReadEventMetadata>(streamName: string, events: SQLiteProjectionSpecEvent<EventType, EventMetaDataType>[]) => SQLiteProjectionSpecEvent<EventType, EventMetaDataType>[];
|
|
233
|
-
declare const newEventsInStream: <EventType extends Event = Event, EventMetaDataType extends SQLiteReadEventMetadata = _event_driven_io_emmett.RecordedMessageMetadataWithGlobalPosition>(streamName: string, events: SQLiteProjectionSpecEvent<EventType, EventMetaDataType>[]) => SQLiteProjectionSpecEvent<EventType, EventMetaDataType>[];
|
|
234
|
-
declare const assertSQLQueryResultMatches: <T extends QueryResultRow>(sql: SQL, rows: T[]) => SQLiteProjectionAssert;
|
|
235
|
-
declare const expectSQL: {
|
|
236
|
-
query: (sql: SQL) => {
|
|
237
|
-
resultRows: {
|
|
238
|
-
toBeTheSame: <T extends QueryResultRow>(rows: T[]) => SQLiteProjectionAssert;
|
|
239
|
-
};
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
export { type AppendEventResult, type PongoAssertOptions, type PongoDocumentEvolve, type PongoMultiStreamProjectionOptions, type PongoProjectionHandlerContext, type PongoProjectionOptions, type PongoSingleStreamProjectionOptions, type PongoWithNotNullDocumentEvolve, type PongoWithNullableDocumentEvolve, type ReadLastMessageGlobalPositionResult, type ReadMessagesBatchOptions, type ReadMessagesBatchResult, type ReadProcessorCheckpointResult, SQLiteEventStore, type SQLiteProjectionAssert, SQLiteProjectionDefinition, SQLiteProjectionHandlerContext, SQLiteProjectionSpec, type SQLiteProjectionSpecEvent, type SQLiteProjectionSpecOptions, type SQLiteProjectionSpecWhenOptions, SQLiteReadEventMetadata, type StoreProcessorCheckpointResult, appendToStream, assertSQLQueryResultMatches, defaultTag, documentDoesNotExist, documentExists, documentMatchingExists, documentsAreTheSame, documentsMatchingHaveCount, emmettPrefix, eventInStream, eventsInStream, expectPongoDocuments, expectSQL, globalNames, globalTag, messagesTable, migration_0_42_0_FromSubscriptionsToProcessors, migration_0_42_0_SQLs, newEventsInStream, pongoMultiStreamProjection, pongoProjection, pongoSingleStreamProjection, processorsTable, projectionsTable, readLastMessageGlobalPosition, readMessagesBatch, readProcessorCheckpoint, readStream, schema_0_41_0, schema_0_42_0, storeProcessorCheckpoint, streamsTable, unknownTag };
|
|
1
|
+
import { $ as unknownTag, A as PongoProjectionHandlerContext, B as SQLiteEventStoreDefaultStreamVersion, C as documentExists, Ct as schema_0_41_0, D as expectPongoDocuments, E as documentsMatchingHaveCount, F as pongoMultiStreamProjection, G as defaultTag, H as SQLiteReadEvent, I as pongoProjection, J as globalTag, K as emmettPrefix, L as pongoSingleStreamProjection, M as PongoSingleStreamProjectionOptions, N as PongoWithNotNullDocumentEvolve, O as PongoDocumentEvolve, P as PongoWithNullableDocumentEvolve, Q as streamsTable, R as EventHandler, S as documentDoesNotExist, St as migration_0_42_0_SQLs, T as documentsAreTheSame, Tt as appendToStream, U as SQLiteReadEventMetadata, V as SQLiteEventStoreOptions, W as getSQLiteEventStore, X as processorsTable, Y as messagesTable, Z as projectionsTable, _ as handleProjections, _t as readMessagesBatch, a as SQLiteProjectionSpecWhenOptions, at as projectionsTableSQL, b as sqliteRawSQLProjection, bt as schema_0_42_0, c as eventsInStream, ct as SQLiteStreamExistsOptions, d as SQLiteProjectionDefinition, dt as storeProcessorCheckpoint, et as CreateEventStoreSchemaOptions, f as SQLiteProjectionHandler, ft as readStream, g as SQLiteRawSQLProjection, gt as ReadMessagesBatchResult, h as SQLiteRawBatchSQLProjection, ht as ReadMessagesBatchOptions, i as SQLiteProjectionSpecOptions, it as processorsTableSQL, j as PongoProjectionOptions, k as PongoMultiStreamProjectionOptions, l as expectSQL, lt as streamExists, m as SQLiteProjectionHandlerOptions, mt as readProcessorCheckpoint, n as SQLiteProjectionSpec, nt as createEventStoreSchema, o as assertSQLQueryResultMatches, ot as schemaSQL, p as SQLiteProjectionHandlerContext, pt as ReadProcessorCheckpointResult, q as globalNames, r as SQLiteProjectionSpecEvent, rt as messagesTableSQL, s as eventInStream, st as streamsTableSQL, t as SQLiteProjectionAssert, tt as EventStoreSchemaMigrationOptions, u as newEventsInStream, ut as StoreProcessorCheckpointResult, v as sqliteProjection, vt as ReadLastMessageGlobalPositionResult, w as documentMatchingExists, wt as AppendEventResult, x as PongoAssertOptions, xt as migration_0_42_0_FromSubscriptionsToProcessors, y as sqliteRawBatchSQLProjection, yt as readLastMessageGlobalPosition, z as SQLiteEventStore } from "./index-2i8q-ZKl.js";
|
|
2
|
+
export { AppendEventResult, CreateEventStoreSchemaOptions, EventHandler, EventStoreSchemaMigrationOptions, PongoAssertOptions, PongoDocumentEvolve, PongoMultiStreamProjectionOptions, PongoProjectionHandlerContext, PongoProjectionOptions, PongoSingleStreamProjectionOptions, PongoWithNotNullDocumentEvolve, PongoWithNullableDocumentEvolve, ReadLastMessageGlobalPositionResult, ReadMessagesBatchOptions, ReadMessagesBatchResult, ReadProcessorCheckpointResult, SQLiteEventStore, SQLiteEventStoreDefaultStreamVersion, SQLiteEventStoreOptions, SQLiteProjectionAssert, SQLiteProjectionDefinition, SQLiteProjectionHandler, SQLiteProjectionHandlerContext, SQLiteProjectionHandlerOptions, SQLiteProjectionSpec, SQLiteProjectionSpecEvent, SQLiteProjectionSpecOptions, SQLiteProjectionSpecWhenOptions, SQLiteRawBatchSQLProjection, SQLiteRawSQLProjection, SQLiteReadEvent, SQLiteReadEventMetadata, SQLiteStreamExistsOptions, StoreProcessorCheckpointResult, appendToStream, assertSQLQueryResultMatches, createEventStoreSchema, defaultTag, documentDoesNotExist, documentExists, documentMatchingExists, documentsAreTheSame, documentsMatchingHaveCount, emmettPrefix, eventInStream, eventsInStream, expectPongoDocuments, expectSQL, getSQLiteEventStore, globalNames, globalTag, handleProjections, messagesTable, messagesTableSQL, migration_0_42_0_FromSubscriptionsToProcessors, migration_0_42_0_SQLs, newEventsInStream, pongoMultiStreamProjection, pongoProjection, pongoSingleStreamProjection, processorsTable, processorsTableSQL, projectionsTable, projectionsTableSQL, readLastMessageGlobalPosition, readMessagesBatch, readProcessorCheckpoint, readStream, schemaSQL, schema_0_41_0, schema_0_42_0, sqliteProjection, sqliteRawBatchSQLProjection, sqliteRawSQLProjection, storeProcessorCheckpoint, streamExists, streamsTable, streamsTableSQL, unknownTag };
|