@event-driven-io/emmett-postgresql 0.43.0-beta.1 → 0.43.0-beta.11
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/index.cjs +1260 -813
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +174 -172
- package/dist/index.d.ts +174 -172
- package/dist/index.js +1744 -1297
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SQLExecutor,
|
|
1
|
+
import { SQLExecutor, Dumbo, QueryResultRow, SQL, RunSQLMigrationsResult, SQLMigration, DatabaseTransaction, AnyConnection, MigrationStyle } from '@event-driven-io/dumbo';
|
|
2
2
|
import * as _event_driven_io_emmett from '@event-driven-io/emmett';
|
|
3
|
-
import {
|
|
4
|
-
import { PgTransaction, PgPool, PgDriverType, PgPoolClientConnection, PgClientConnection
|
|
3
|
+
import { ProcessorCheckpoint, Message, BatchRecordedMessageHandlerWithoutContext, ReadEventMetadataWithGlobalPosition, EmmettError, ProjectionHandlingType, ProjectionRegistration, ProjectionDefinition, AnyReadEventMetadata, DefaultRecord, Event, ReadEvent, CanHandle, EventStoreReadSchemaOptions, JSONSerializationOptions, TruncateProjection, ThenThrows, RecordedMessage, AppendToStreamOptions, RecordedMessageMetadata, RecordedMessageMetadataWithGlobalPosition, ReadStreamOptions, ReadStreamResult, StreamExistsResult, ProjectionHandler, ProjectionInitOptions, EventStore, EventStoreSessionFactory, AppendToStreamResultWithGlobalPosition, AnyMessage, Checkpointer, ReactorOptions, MessageProcessor, AnyEvent, AnyCommand, AnyRecordedMessageMetadata, WorkflowProcessorContext, WorkflowProcessorOptions, ProjectorOptions, BatchRecordedMessageHandlerWithContext, SingleRecordedMessageHandlerWithContext, MessageConsumerOptions, MessageConsumer } from '@event-driven-io/emmett';
|
|
4
|
+
import { PgPoolOptions, PgTransaction, PgPool, PgClient, PgDriverType, PgPoolClientConnection, PgClientConnection } from '@event-driven-io/dumbo/pg';
|
|
5
5
|
import pg from 'pg';
|
|
6
|
-
import {
|
|
6
|
+
import { PongoDocument, PongoDBCollectionOptions, PongoClient, WithId, PongoFilter } from '@event-driven-io/pongo';
|
|
7
7
|
|
|
8
8
|
declare const DefaultPostgreSQLEventStoreProcessorBatchSize = 100;
|
|
9
9
|
declare const DefaultPostgreSQLEventStoreProcessorPullingFrequencyInMs = 50;
|
|
@@ -148,6 +148,123 @@ declare const readProjectionInfo: (execute: SQLExecutor, { name, partition, vers
|
|
|
148
148
|
version: number;
|
|
149
149
|
}) => Promise<ReadProjectionInfoResult | null>;
|
|
150
150
|
|
|
151
|
+
type PongoProjectionHandlerContext = PostgreSQLProjectionHandlerContext & {
|
|
152
|
+
pongo: PongoClient;
|
|
153
|
+
};
|
|
154
|
+
type PongoWithNotNullDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata> = ((document: Document, event: ReadEvent<EventType, EventMetaDataType>) => Document | null) | ((document: Document, event: ReadEvent<EventType>) => Promise<Document | null>);
|
|
155
|
+
type PongoWithNullableDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata> = ((document: Document | null, event: ReadEvent<EventType, EventMetaDataType>) => Document | null) | ((document: Document | null, event: ReadEvent<EventType>) => Promise<Document | null>);
|
|
156
|
+
type PongoDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata> = PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType> | PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
157
|
+
type PongoProjectionOptions<EventType extends Event, EventPayloadType extends Event = EventType> = {
|
|
158
|
+
name: string;
|
|
159
|
+
kind?: string;
|
|
160
|
+
version?: number;
|
|
161
|
+
handle: (events: ReadEvent<EventType, PostgresReadEventMetadata>[], context: PongoProjectionHandlerContext) => Promise<void>;
|
|
162
|
+
canHandle: CanHandle<EventType>;
|
|
163
|
+
truncate?: TruncateProjection<PongoProjectionHandlerContext>;
|
|
164
|
+
init?: (context: PongoProjectionHandlerContext) => void | Promise<void>;
|
|
165
|
+
eventsOptions?: {
|
|
166
|
+
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
167
|
+
};
|
|
168
|
+
} & JSONSerializationOptions;
|
|
169
|
+
declare const pongoProjection: <EventType extends Event, EventPayloadType extends Event = EventType>({ name, kind, version, truncate, handle, canHandle, eventsOptions, }: PongoProjectionOptions<EventType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
170
|
+
type PongoMultiStreamProjectionOptions<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata, EventPayloadType extends Event = EventType, DocumentPayload extends PongoDocument = Document> = {
|
|
171
|
+
kind?: string;
|
|
172
|
+
canHandle: CanHandle<EventType>;
|
|
173
|
+
version?: number;
|
|
174
|
+
collectionName: string;
|
|
175
|
+
collectionOptions?: PongoDBCollectionOptions<Document, DocumentPayload>;
|
|
176
|
+
eventsOptions?: {
|
|
177
|
+
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
178
|
+
};
|
|
179
|
+
getDocumentId: (event: ReadEvent<EventType>) => string;
|
|
180
|
+
} & ({
|
|
181
|
+
evolve: PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
182
|
+
} | {
|
|
183
|
+
evolve: PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
184
|
+
initialState: () => Document;
|
|
185
|
+
}) & JSONSerializationOptions;
|
|
186
|
+
declare const pongoMultiStreamProjection: <Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata, EventPayloadType extends Event = EventType>(options: PongoMultiStreamProjectionOptions<Document, EventType, EventMetaDataType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
187
|
+
type PongoSingleStreamProjectionOptions<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata, EventPayloadType extends Event = EventType, DocumentPayload extends PongoDocument = Document> = {
|
|
188
|
+
canHandle: CanHandle<EventType>;
|
|
189
|
+
getDocumentId?: (event: ReadEvent<EventType>) => string;
|
|
190
|
+
version?: number;
|
|
191
|
+
collectionName: string;
|
|
192
|
+
collectionOptions?: PongoDBCollectionOptions<Document, DocumentPayload>;
|
|
193
|
+
eventsOptions?: {
|
|
194
|
+
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
195
|
+
};
|
|
196
|
+
} & ({
|
|
197
|
+
evolve: PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
198
|
+
} | {
|
|
199
|
+
evolve: PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
200
|
+
initialState: () => Document;
|
|
201
|
+
}) & JSONSerializationOptions;
|
|
202
|
+
declare const pongoSingleStreamProjection: <Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata, EventPayloadType extends Event = EventType>(options: PongoSingleStreamProjectionOptions<Document, EventType, EventMetaDataType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
203
|
+
|
|
204
|
+
type PongoAssertOptions = {
|
|
205
|
+
inCollection: string;
|
|
206
|
+
inDatabase?: string;
|
|
207
|
+
};
|
|
208
|
+
type FilterOrId<Doc extends PongoDocument | WithId<PongoDocument>> = {
|
|
209
|
+
withId: string;
|
|
210
|
+
} | {
|
|
211
|
+
matchingFilter: PongoFilter<Doc>;
|
|
212
|
+
};
|
|
213
|
+
declare const documentExists: <Doc extends PongoDocument | WithId<PongoDocument>>(document: Doc, options: PongoAssertOptions & FilterOrId<Doc>) => PostgreSQLProjectionAssert;
|
|
214
|
+
declare const documentsAreTheSame: <Doc extends PongoDocument | WithId<PongoDocument>>(documents: Doc[], options: PongoAssertOptions & FilterOrId<Doc>) => PostgreSQLProjectionAssert;
|
|
215
|
+
declare const documentsMatchingHaveCount: <Doc extends PongoDocument | WithId<PongoDocument>>(expectedCount: number, options: PongoAssertOptions & FilterOrId<Doc>) => PostgreSQLProjectionAssert;
|
|
216
|
+
declare const documentMatchingExists: <Doc extends PongoDocument | WithId<PongoDocument>>(options: PongoAssertOptions & FilterOrId<Doc>) => PostgreSQLProjectionAssert;
|
|
217
|
+
declare const documentDoesNotExist: <Doc extends PongoDocument | WithId<PongoDocument>>(options: PongoAssertOptions & FilterOrId<Doc>) => PostgreSQLProjectionAssert;
|
|
218
|
+
declare const expectPongoDocuments: {
|
|
219
|
+
fromCollection: <Doc extends PongoDocument | WithId<PongoDocument>>(collectionName: string) => {
|
|
220
|
+
withId: (id: string) => {
|
|
221
|
+
toBeEqual: (document: Doc) => PostgreSQLProjectionAssert;
|
|
222
|
+
toExist: () => PostgreSQLProjectionAssert;
|
|
223
|
+
notToExist: () => PostgreSQLProjectionAssert;
|
|
224
|
+
};
|
|
225
|
+
matching: <Doc_1 extends PongoDocument | WithId<PongoDocument>>(filter: PongoFilter<Doc_1>) => {
|
|
226
|
+
toBeTheSame: (documents: Doc_1[]) => PostgreSQLProjectionAssert;
|
|
227
|
+
toHaveCount: (expectedCount: number) => PostgreSQLProjectionAssert;
|
|
228
|
+
toExist: () => PostgreSQLProjectionAssert;
|
|
229
|
+
notToExist: () => PostgreSQLProjectionAssert;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
type PostgreSQLProjectionSpecEvent<EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata> = EventType & {
|
|
235
|
+
metadata?: Partial<EventMetaDataType>;
|
|
236
|
+
};
|
|
237
|
+
type PostgreSQLProjectionSpecWhenOptions = {
|
|
238
|
+
numberOfTimes: number;
|
|
239
|
+
};
|
|
240
|
+
type PostgreSQLProjectionAssert = (options: {
|
|
241
|
+
pool: Dumbo;
|
|
242
|
+
connectionString: string;
|
|
243
|
+
}) => Promise<void | boolean>;
|
|
244
|
+
type PostgreSQLProjectionSpecOptions<EventType extends Event> = {
|
|
245
|
+
projection: PostgreSQLProjectionDefinition<EventType>;
|
|
246
|
+
} & PgPoolOptions;
|
|
247
|
+
type PostgreSQLProjectionSpec<EventType extends Event> = (givenEvents: PostgreSQLProjectionSpecEvent<EventType>[]) => {
|
|
248
|
+
when: (events: PostgreSQLProjectionSpecEvent<EventType>[], options?: PostgreSQLProjectionSpecWhenOptions) => {
|
|
249
|
+
then: (assert: PostgreSQLProjectionAssert, message?: string) => Promise<void>;
|
|
250
|
+
thenThrows: <ErrorType extends Error = Error>(...args: Parameters<ThenThrows<ErrorType>>) => Promise<void>;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
declare const PostgreSQLProjectionSpec: {
|
|
254
|
+
for: <EventType extends Event>(options: PostgreSQLProjectionSpecOptions<EventType>) => PostgreSQLProjectionSpec<EventType>;
|
|
255
|
+
};
|
|
256
|
+
declare const eventInStream: <EventType extends Event = Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata>(streamName: string, event: PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>) => PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>;
|
|
257
|
+
declare const eventsInStream: <EventType extends Event = Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata>(streamName: string, events: PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>[]) => PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>[];
|
|
258
|
+
declare const newEventsInStream: <EventType extends Event = Event, EventMetaDataType extends PostgresReadEventMetadata = _event_driven_io_emmett.RecordedMessageMetadataWithGlobalPosition>(streamName: string, events: PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>[]) => PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>[];
|
|
259
|
+
declare const assertSQLQueryResultMatches: <T extends QueryResultRow>(sql: SQL, rows: T[]) => PostgreSQLProjectionAssert;
|
|
260
|
+
declare const expectSQL: {
|
|
261
|
+
query: (sql: SQL) => {
|
|
262
|
+
resultRows: {
|
|
263
|
+
toBeTheSame: <T extends QueryResultRow>(rows: T[]) => PostgreSQLProjectionAssert;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
|
|
151
268
|
declare const emmettPrefix = "emt";
|
|
152
269
|
declare const globalTag = "global";
|
|
153
270
|
declare const defaultTag = "emt:default";
|
|
@@ -372,12 +489,56 @@ type CreateEventStoreSchemaOptions = {
|
|
|
372
489
|
dryRun?: boolean | undefined;
|
|
373
490
|
ignoreMigrationHashMismatch?: boolean | undefined;
|
|
374
491
|
migrationTimeoutMs?: number | undefined;
|
|
375
|
-
};
|
|
492
|
+
} & JSONSerializationOptions;
|
|
376
493
|
type EventStoreSchemaMigrationOptions = {
|
|
377
494
|
migrationOptions?: CreateEventStoreSchemaOptions;
|
|
378
495
|
};
|
|
379
496
|
declare const createEventStoreSchema: (connectionString: string, pool: PgPool, hooks?: PostgresEventStoreOptions["hooks"], options?: CreateEventStoreSchemaOptions) => Promise<RunSQLMigrationsResult>;
|
|
380
497
|
|
|
498
|
+
type PostgreSQLProjectionHandlerContext = {
|
|
499
|
+
execute: SQLExecutor;
|
|
500
|
+
connection: {
|
|
501
|
+
connectionString: string;
|
|
502
|
+
client: PgClient;
|
|
503
|
+
transaction: PgTransaction;
|
|
504
|
+
pool: Dumbo;
|
|
505
|
+
};
|
|
506
|
+
} & EventStoreSchemaMigrationOptions;
|
|
507
|
+
declare const transactionToPostgreSQLProjectionHandlerContext: (connectionString: string, pool: Dumbo, transaction: PgTransaction | DatabaseTransaction<AnyConnection>) => Promise<PostgreSQLProjectionHandlerContext>;
|
|
508
|
+
type PostgreSQLProjectionHandler<EventType extends Event = Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata> = ProjectionHandler<EventType, EventMetaDataType, PostgreSQLProjectionHandlerContext>;
|
|
509
|
+
type PostgreSQLProjectionDefinition<EventType extends Event = Event, EventPayloadType extends Event = EventType> = ProjectionDefinition<EventType, PostgresReadEventMetadata, PostgreSQLProjectionHandlerContext, EventPayloadType>;
|
|
510
|
+
type PostgreSQLProjectionHandlerOptions<EventType extends Event = Event> = {
|
|
511
|
+
events: ReadEvent<EventType, PostgresReadEventMetadata>[];
|
|
512
|
+
projections: PostgreSQLProjectionDefinition<EventType>[];
|
|
513
|
+
partition?: string;
|
|
514
|
+
} & PostgreSQLProjectionHandlerContext;
|
|
515
|
+
declare const handleProjections: <EventType extends Event = Event>(options: PostgreSQLProjectionHandlerOptions<EventType>) => Promise<void>;
|
|
516
|
+
declare const postgreSQLProjection: <EventType extends Event, EventPayloadType extends Event = EventType>(definition: PostgreSQLProjectionDefinition<EventType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
517
|
+
type PostgreSQLRawBatchSQLProjection<EventType extends Event, EventPayloadType extends Event = EventType> = {
|
|
518
|
+
name: string;
|
|
519
|
+
kind?: string;
|
|
520
|
+
version?: number;
|
|
521
|
+
evolve: (events: EventType[], context: PostgreSQLProjectionHandlerContext) => Promise<SQL[]> | SQL[];
|
|
522
|
+
canHandle: CanHandle<EventType>;
|
|
523
|
+
init?: (context: ProjectionInitOptions<PostgreSQLProjectionHandlerContext>) => void | Promise<void> | SQL | Promise<SQL> | Promise<SQL[]> | SQL[];
|
|
524
|
+
eventsOptions?: {
|
|
525
|
+
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
526
|
+
};
|
|
527
|
+
} & JSONSerializationOptions;
|
|
528
|
+
declare const postgreSQLRawBatchSQLProjection: <EventType extends Event, EventPayloadType extends Event = EventType>(options: PostgreSQLRawBatchSQLProjection<EventType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
529
|
+
type PostgreSQLRawSQLProjection<EventType extends Event, EventPayloadType extends Event = EventType> = {
|
|
530
|
+
name: string;
|
|
531
|
+
kind?: string;
|
|
532
|
+
version?: number;
|
|
533
|
+
evolve: (events: EventType, context: PostgreSQLProjectionHandlerContext) => Promise<SQL[]> | SQL[] | Promise<SQL> | SQL;
|
|
534
|
+
canHandle: CanHandle<EventType>;
|
|
535
|
+
init?: (context: ProjectionInitOptions<PostgreSQLProjectionHandlerContext>) => void | Promise<void> | SQL | Promise<SQL> | Promise<SQL[]> | SQL[];
|
|
536
|
+
eventsOptions?: {
|
|
537
|
+
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
538
|
+
};
|
|
539
|
+
} & JSONSerializationOptions;
|
|
540
|
+
declare const postgreSQLRawSQLProjection: <EventType extends Event, EventPayloadType extends Event = EventType>(options: PostgreSQLRawSQLProjection<EventType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
541
|
+
|
|
381
542
|
interface PostgresEventStore extends EventStore<PostgresReadEventMetadata>, EventStoreSessionFactory<PostgresEventStore> {
|
|
382
543
|
appendToStream<EventType extends Event, EventPayloadType extends Event = EventType>(streamName: string, events: EventType[], options?: AppendToStreamOptions<EventType, EventPayloadType>): Promise<AppendToStreamResultWithGlobalPosition>;
|
|
383
544
|
consumer<ConsumerEventType extends Event = Event>(options?: PostgreSQLEventStoreConsumerConfig<ConsumerEventType>): PostgreSQLEventStoreConsumer<ConsumerEventType>;
|
|
@@ -464,172 +625,11 @@ type PostgresEventStoreOptions = {
|
|
|
464
625
|
*/
|
|
465
626
|
onAfterSchemaCreated?: (context: PostgreSQLProjectionHandlerContext) => Promise<void> | void;
|
|
466
627
|
};
|
|
467
|
-
};
|
|
628
|
+
} & JSONSerializationOptions;
|
|
468
629
|
declare const defaultPostgreSQLOptions: PostgresEventStoreOptions;
|
|
469
630
|
declare const PostgreSQLEventStoreDefaultStreamVersion = 0n;
|
|
470
631
|
declare const getPostgreSQLEventStore: (connectionString: string, options?: PostgresEventStoreOptions) => PostgresEventStore;
|
|
471
632
|
|
|
472
|
-
type PongoProjectionHandlerContext = PostgreSQLProjectionHandlerContext & {
|
|
473
|
-
pongo: PongoClient;
|
|
474
|
-
};
|
|
475
|
-
type PongoWithNotNullDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata> = ((document: Document, event: ReadEvent<EventType, EventMetaDataType>) => Document | null) | ((document: Document, event: ReadEvent<EventType>) => Promise<Document | null>);
|
|
476
|
-
type PongoWithNullableDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata> = ((document: Document | null, event: ReadEvent<EventType, EventMetaDataType>) => Document | null) | ((document: Document | null, event: ReadEvent<EventType>) => Promise<Document | null>);
|
|
477
|
-
type PongoDocumentEvolve<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata> = PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType> | PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
478
|
-
type PongoProjectionOptions<EventType extends Event, EventPayloadType extends Event = EventType> = {
|
|
479
|
-
name: string;
|
|
480
|
-
kind?: string;
|
|
481
|
-
version?: number;
|
|
482
|
-
handle: (events: ReadEvent<EventType, PostgresReadEventMetadata>[], context: PongoProjectionHandlerContext) => Promise<void>;
|
|
483
|
-
canHandle: CanHandle<EventType>;
|
|
484
|
-
truncate?: TruncateProjection<PongoProjectionHandlerContext>;
|
|
485
|
-
init?: (context: PongoProjectionHandlerContext) => void | Promise<void>;
|
|
486
|
-
eventsOptions?: {
|
|
487
|
-
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
488
|
-
};
|
|
489
|
-
};
|
|
490
|
-
declare const pongoProjection: <EventType extends Event, EventPayloadType extends Event = EventType>({ name, kind, version, truncate, handle, canHandle, eventsOptions, }: PongoProjectionOptions<EventType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
491
|
-
type PongoMultiStreamProjectionOptions<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata, EventPayloadType extends Event = EventType, DocumentPayload extends PongoDocument = Document> = {
|
|
492
|
-
kind?: string;
|
|
493
|
-
canHandle: CanHandle<EventType>;
|
|
494
|
-
version?: number;
|
|
495
|
-
collectionName: string;
|
|
496
|
-
collectionOptions?: PongoDBCollectionOptions<Document, DocumentPayload>;
|
|
497
|
-
eventsOptions?: {
|
|
498
|
-
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
499
|
-
};
|
|
500
|
-
getDocumentId: (event: ReadEvent<EventType>) => string;
|
|
501
|
-
} & ({
|
|
502
|
-
evolve: PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
503
|
-
} | {
|
|
504
|
-
evolve: PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
505
|
-
initialState: () => Document;
|
|
506
|
-
});
|
|
507
|
-
declare const pongoMultiStreamProjection: <Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata, EventPayloadType extends Event = EventType>(options: PongoMultiStreamProjectionOptions<Document, EventType, EventMetaDataType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
508
|
-
type PongoSingleStreamProjectionOptions<Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata, EventPayloadType extends Event = EventType, DocumentPayload extends PongoDocument = Document> = {
|
|
509
|
-
canHandle: CanHandle<EventType>;
|
|
510
|
-
getDocumentId?: (event: ReadEvent<EventType>) => string;
|
|
511
|
-
version?: number;
|
|
512
|
-
collectionName: string;
|
|
513
|
-
collectionOptions?: PongoDBCollectionOptions<Document, DocumentPayload>;
|
|
514
|
-
eventsOptions?: {
|
|
515
|
-
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
516
|
-
};
|
|
517
|
-
} & ({
|
|
518
|
-
evolve: PongoWithNullableDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
519
|
-
} | {
|
|
520
|
-
evolve: PongoWithNotNullDocumentEvolve<Document, EventType, EventMetaDataType>;
|
|
521
|
-
initialState: () => Document;
|
|
522
|
-
});
|
|
523
|
-
declare const pongoSingleStreamProjection: <Document extends PongoDocument, EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata, EventPayloadType extends Event = EventType>(options: PongoSingleStreamProjectionOptions<Document, EventType, EventMetaDataType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
524
|
-
|
|
525
|
-
type PongoAssertOptions = {
|
|
526
|
-
inCollection: string;
|
|
527
|
-
inDatabase?: string;
|
|
528
|
-
};
|
|
529
|
-
type FilterOrId<Doc extends PongoDocument | WithId<PongoDocument>> = {
|
|
530
|
-
withId: string;
|
|
531
|
-
} | {
|
|
532
|
-
matchingFilter: PongoFilter<Doc>;
|
|
533
|
-
};
|
|
534
|
-
declare const documentExists: <Doc extends PongoDocument | WithId<PongoDocument>>(document: Doc, options: PongoAssertOptions & FilterOrId<Doc>) => PostgreSQLProjectionAssert;
|
|
535
|
-
declare const documentsAreTheSame: <Doc extends PongoDocument | WithId<PongoDocument>>(documents: Doc[], options: PongoAssertOptions & FilterOrId<Doc>) => PostgreSQLProjectionAssert;
|
|
536
|
-
declare const documentsMatchingHaveCount: <Doc extends PongoDocument | WithId<PongoDocument>>(expectedCount: number, options: PongoAssertOptions & FilterOrId<Doc>) => PostgreSQLProjectionAssert;
|
|
537
|
-
declare const documentMatchingExists: <Doc extends PongoDocument | WithId<PongoDocument>>(options: PongoAssertOptions & FilterOrId<Doc>) => PostgreSQLProjectionAssert;
|
|
538
|
-
declare const documentDoesNotExist: <Doc extends PongoDocument | WithId<PongoDocument>>(options: PongoAssertOptions & FilterOrId<Doc>) => PostgreSQLProjectionAssert;
|
|
539
|
-
declare const expectPongoDocuments: {
|
|
540
|
-
fromCollection: <Doc extends PongoDocument | WithId<PongoDocument>>(collectionName: string) => {
|
|
541
|
-
withId: (id: string) => {
|
|
542
|
-
toBeEqual: (document: Doc) => PostgreSQLProjectionAssert;
|
|
543
|
-
toExist: () => PostgreSQLProjectionAssert;
|
|
544
|
-
notToExist: () => PostgreSQLProjectionAssert;
|
|
545
|
-
};
|
|
546
|
-
matching: <Doc_1 extends PongoDocument | WithId<PongoDocument>>(filter: PongoFilter<Doc_1>) => {
|
|
547
|
-
toBeTheSame: (documents: Doc_1[]) => PostgreSQLProjectionAssert;
|
|
548
|
-
toHaveCount: (expectedCount: number) => PostgreSQLProjectionAssert;
|
|
549
|
-
toExist: () => PostgreSQLProjectionAssert;
|
|
550
|
-
notToExist: () => PostgreSQLProjectionAssert;
|
|
551
|
-
};
|
|
552
|
-
};
|
|
553
|
-
};
|
|
554
|
-
|
|
555
|
-
type PostgreSQLProjectionSpecEvent<EventType extends Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata> = EventType & {
|
|
556
|
-
metadata?: Partial<EventMetaDataType>;
|
|
557
|
-
};
|
|
558
|
-
type PostgreSQLProjectionSpecWhenOptions = {
|
|
559
|
-
numberOfTimes: number;
|
|
560
|
-
};
|
|
561
|
-
type PostgreSQLProjectionAssert = (options: {
|
|
562
|
-
pool: Dumbo;
|
|
563
|
-
connectionString: string;
|
|
564
|
-
}) => Promise<void | boolean>;
|
|
565
|
-
type PostgreSQLProjectionSpecOptions<EventType extends Event> = {
|
|
566
|
-
projection: PostgreSQLProjectionDefinition<EventType>;
|
|
567
|
-
} & PgPoolOptions;
|
|
568
|
-
type PostgreSQLProjectionSpec<EventType extends Event> = (givenEvents: PostgreSQLProjectionSpecEvent<EventType>[]) => {
|
|
569
|
-
when: (events: PostgreSQLProjectionSpecEvent<EventType>[], options?: PostgreSQLProjectionSpecWhenOptions) => {
|
|
570
|
-
then: (assert: PostgreSQLProjectionAssert, message?: string) => Promise<void>;
|
|
571
|
-
thenThrows: <ErrorType extends Error = Error>(...args: Parameters<ThenThrows<ErrorType>>) => Promise<void>;
|
|
572
|
-
};
|
|
573
|
-
};
|
|
574
|
-
declare const PostgreSQLProjectionSpec: {
|
|
575
|
-
for: <EventType extends Event>(options: PostgreSQLProjectionSpecOptions<EventType>) => PostgreSQLProjectionSpec<EventType>;
|
|
576
|
-
};
|
|
577
|
-
declare const eventInStream: <EventType extends Event = Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata>(streamName: string, event: PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>) => PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>;
|
|
578
|
-
declare const eventsInStream: <EventType extends Event = Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata>(streamName: string, events: PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>[]) => PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>[];
|
|
579
|
-
declare const newEventsInStream: <EventType extends Event = Event, EventMetaDataType extends PostgresReadEventMetadata = _event_driven_io_emmett.RecordedMessageMetadataWithGlobalPosition>(streamName: string, events: PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>[]) => PostgreSQLProjectionSpecEvent<EventType, EventMetaDataType>[];
|
|
580
|
-
declare const assertSQLQueryResultMatches: <T extends QueryResultRow>(sql: SQL, rows: T[]) => PostgreSQLProjectionAssert;
|
|
581
|
-
declare const expectSQL: {
|
|
582
|
-
query: (sql: SQL) => {
|
|
583
|
-
resultRows: {
|
|
584
|
-
toBeTheSame: <T extends QueryResultRow>(rows: T[]) => PostgreSQLProjectionAssert;
|
|
585
|
-
};
|
|
586
|
-
};
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
type PostgreSQLProjectionHandlerContext = {
|
|
590
|
-
execute: SQLExecutor;
|
|
591
|
-
connection: {
|
|
592
|
-
connectionString: string;
|
|
593
|
-
client: PgClient;
|
|
594
|
-
transaction: PgTransaction;
|
|
595
|
-
pool: Dumbo;
|
|
596
|
-
};
|
|
597
|
-
} & EventStoreSchemaMigrationOptions;
|
|
598
|
-
declare const transactionToPostgreSQLProjectionHandlerContext: (connectionString: string, pool: Dumbo, transaction: PgTransaction | DatabaseTransaction<AnyConnection>) => Promise<PostgreSQLProjectionHandlerContext>;
|
|
599
|
-
type PostgreSQLProjectionHandler<EventType extends Event = Event, EventMetaDataType extends PostgresReadEventMetadata = PostgresReadEventMetadata> = ProjectionHandler<EventType, EventMetaDataType, PostgreSQLProjectionHandlerContext>;
|
|
600
|
-
type PostgreSQLProjectionDefinition<EventType extends Event = Event, EventPayloadType extends Event = EventType> = ProjectionDefinition<EventType, PostgresReadEventMetadata, PostgreSQLProjectionHandlerContext, EventPayloadType>;
|
|
601
|
-
type PostgreSQLProjectionHandlerOptions<EventType extends Event = Event> = {
|
|
602
|
-
events: ReadEvent<EventType, PostgresReadEventMetadata>[];
|
|
603
|
-
projections: PostgreSQLProjectionDefinition<EventType>[];
|
|
604
|
-
partition?: string;
|
|
605
|
-
} & PostgreSQLProjectionHandlerContext;
|
|
606
|
-
declare const handleProjections: <EventType extends Event = Event>(options: PostgreSQLProjectionHandlerOptions<EventType>) => Promise<void>;
|
|
607
|
-
declare const postgreSQLProjection: <EventType extends Event, EventPayloadType extends Event = EventType>(definition: PostgreSQLProjectionDefinition<EventType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
608
|
-
type PostgreSQLRawBatchSQLProjection<EventType extends Event, EventPayloadType extends Event = EventType> = {
|
|
609
|
-
name: string;
|
|
610
|
-
kind?: string;
|
|
611
|
-
version?: number;
|
|
612
|
-
evolve: (events: EventType[], context: PostgreSQLProjectionHandlerContext) => Promise<SQL[]> | SQL[];
|
|
613
|
-
canHandle: CanHandle<EventType>;
|
|
614
|
-
init?: (context: ProjectionInitOptions<PostgreSQLProjectionHandlerContext>) => void | Promise<void> | SQL | Promise<SQL> | Promise<SQL[]> | SQL[];
|
|
615
|
-
eventsOptions?: {
|
|
616
|
-
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
617
|
-
};
|
|
618
|
-
};
|
|
619
|
-
declare const postgreSQLRawBatchSQLProjection: <EventType extends Event, EventPayloadType extends Event = EventType>(options: PostgreSQLRawBatchSQLProjection<EventType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
620
|
-
type PostgreSQLRawSQLProjection<EventType extends Event, EventPayloadType extends Event = EventType> = {
|
|
621
|
-
name: string;
|
|
622
|
-
kind?: string;
|
|
623
|
-
version?: number;
|
|
624
|
-
evolve: (events: EventType, context: PostgreSQLProjectionHandlerContext) => Promise<SQL[]> | SQL[] | Promise<SQL> | SQL;
|
|
625
|
-
canHandle: CanHandle<EventType>;
|
|
626
|
-
init?: (context: ProjectionInitOptions<PostgreSQLProjectionHandlerContext>) => void | Promise<void> | SQL | Promise<SQL> | Promise<SQL[]> | SQL[];
|
|
627
|
-
eventsOptions?: {
|
|
628
|
-
schema?: EventStoreReadSchemaOptions<EventType, EventPayloadType>;
|
|
629
|
-
};
|
|
630
|
-
};
|
|
631
|
-
declare const postgreSQLRawSQLProjection: <EventType extends Event, EventPayloadType extends Event = EventType>(options: PostgreSQLRawSQLProjection<EventType, EventPayloadType>) => PostgreSQLProjectionDefinition<EventType, EventPayloadType>;
|
|
632
|
-
|
|
633
633
|
type PostgreSQLProcessorHandlerContext = {
|
|
634
634
|
partition: string;
|
|
635
635
|
execute: SQLExecutor;
|
|
@@ -638,6 +638,7 @@ type PostgreSQLProcessorHandlerContext = {
|
|
|
638
638
|
client: PgClient;
|
|
639
639
|
transaction: PgTransaction;
|
|
640
640
|
pool: Dumbo;
|
|
641
|
+
messageStore: PostgresEventStore;
|
|
641
642
|
};
|
|
642
643
|
} & EventStoreSchemaMigrationOptions;
|
|
643
644
|
type PostgreSQLProcessor<MessageType extends Message = AnyMessage> = MessageProcessor<MessageType, ReadEventMetadataWithGlobalPosition, PostgreSQLProcessorHandlerContext>;
|
|
@@ -692,7 +693,7 @@ type PostgreSQLCheckpointer<MessageType extends AnyMessage = AnyMessage> = Check
|
|
|
692
693
|
declare const postgreSQLCheckpointer: <MessageType extends Message = Message>() => PostgreSQLCheckpointer<MessageType>;
|
|
693
694
|
type PostgreSQLConnectionOptions = {
|
|
694
695
|
connectionOptions?: PostgreSQLProcessorConnectionOptions;
|
|
695
|
-
};
|
|
696
|
+
} & JSONSerializationOptions;
|
|
696
697
|
type PostgreSQLProcessorOptionsBase = PostgreSQLConnectionOptions & {
|
|
697
698
|
lock?: {
|
|
698
699
|
acquisitionPolicy?: LockAcquisitionPolicy;
|
|
@@ -702,8 +703,9 @@ type PostgreSQLProcessorOptionsBase = PostgreSQLConnectionOptions & {
|
|
|
702
703
|
};
|
|
703
704
|
type PostgreSQLReactorOptions<MessageType extends Message = Message, MessagePayloadType extends AnyMessage = MessageType> = ReactorOptions<MessageType, ReadEventMetadataWithGlobalPosition, PostgreSQLProcessorHandlerContext, MessagePayloadType> & PostgreSQLProcessorOptionsBase;
|
|
704
705
|
type PostgreSQLProjectorOptions<EventType extends AnyEvent = AnyEvent, EventPayloadType extends Event = EventType> = ProjectorOptions<EventType, ReadEventMetadataWithGlobalPosition, PostgreSQLProcessorHandlerContext, EventPayloadType> & PostgreSQLProcessorOptionsBase & EventStoreSchemaMigrationOptions;
|
|
705
|
-
type
|
|
706
|
+
type PostgreSQLWorkflowProcessorOptions<Input extends AnyEvent | AnyCommand, State, Output extends AnyEvent | AnyCommand, MetaDataType extends AnyRecordedMessageMetadata = AnyRecordedMessageMetadata, HandlerContext extends WorkflowProcessorContext = WorkflowProcessorContext, StoredMessage extends AnyEvent | AnyCommand = Output> = WorkflowProcessorOptions<Input, State, Output, MetaDataType, HandlerContext, StoredMessage> & PostgreSQLProcessorOptionsBase;
|
|
706
707
|
declare const postgreSQLProjector: <EventType extends Event = Event, EventPayloadType extends Event = EventType>(options: PostgreSQLProjectorOptions<EventType, EventPayloadType>) => PostgreSQLProcessor<EventType>;
|
|
708
|
+
declare const postgreSQLWorkflowProcessor: <Input extends AnyEvent | AnyCommand, State, Output extends AnyEvent | AnyCommand, MetaDataType extends AnyRecordedMessageMetadata = AnyRecordedMessageMetadata, HandlerContext extends PostgreSQLProcessorHandlerContext & WorkflowProcessorContext = PostgreSQLProcessorHandlerContext & WorkflowProcessorContext, StoredMessage extends AnyEvent | AnyCommand = Output>(options: PostgreSQLWorkflowProcessorOptions<Input, State, Output, MetaDataType, HandlerContext, StoredMessage>) => PostgreSQLProcessor<Input | Output>;
|
|
707
709
|
declare const postgreSQLReactor: <MessageType extends Message = Message, MessagePayloadType extends AnyMessage = MessageType>(options: PostgreSQLReactorOptions<MessageType, MessagePayloadType>) => PostgreSQLProcessor<MessageType>;
|
|
708
710
|
|
|
709
711
|
type PostgreSQLEventStoreConsumerConfig<ConsumerMessageType extends Message = any> = MessageConsumerOptions<ConsumerMessageType> & {
|
|
@@ -714,13 +716,14 @@ type PostgreSQLEventStoreConsumerConfig<ConsumerMessageType extends Message = an
|
|
|
714
716
|
batchSize?: number;
|
|
715
717
|
pullingFrequencyInMs?: number;
|
|
716
718
|
};
|
|
717
|
-
};
|
|
719
|
+
} & JSONSerializationOptions;
|
|
718
720
|
type PostgreSQLEventStoreConsumerOptions<ConsumerMessageType extends Message = Message> = PostgreSQLEventStoreConsumerConfig<ConsumerMessageType> & {
|
|
719
721
|
connectionString: string;
|
|
720
722
|
pool?: Dumbo;
|
|
721
723
|
};
|
|
722
724
|
type PostgreSQLEventStoreConsumer<ConsumerMessageType extends AnyMessage = any> = MessageConsumer<ConsumerMessageType> & Readonly<{
|
|
723
725
|
reactor: <MessageType extends AnyMessage = ConsumerMessageType>(options: PostgreSQLReactorOptions<MessageType>) => PostgreSQLProcessor<MessageType>;
|
|
726
|
+
workflowProcessor: <Input extends AnyEvent | AnyCommand, State, Output extends AnyEvent | AnyCommand, MetaDataType extends AnyRecordedMessageMetadata = AnyRecordedMessageMetadata, HandlerContext extends PostgreSQLProcessorHandlerContext & WorkflowProcessorContext = PostgreSQLProcessorHandlerContext & WorkflowProcessorContext, StoredMessage extends AnyEvent | AnyCommand = Output>(options: PostgreSQLWorkflowProcessorOptions<Input, State, Output, MetaDataType, HandlerContext, StoredMessage>) => PostgreSQLProcessor<Input | Output>;
|
|
724
727
|
}> & (AnyEvent extends ConsumerMessageType ? Readonly<{
|
|
725
728
|
projector: <EventType extends AnyEvent = ConsumerMessageType & AnyEvent>(options: PostgreSQLProjectorOptions<EventType>) => PostgreSQLProcessor<EventType>;
|
|
726
729
|
}> : object);
|
|
@@ -728,7 +731,6 @@ declare const postgreSQLEventStoreConsumer: <ConsumerMessageType extends Message
|
|
|
728
731
|
|
|
729
732
|
declare const rebuildPostgreSQLProjections: <EventType extends AnyEvent = AnyEvent>(options: Omit<PostgreSQLEventStoreConsumerOptions<EventType>, "stopWhen" | "processors"> & {
|
|
730
733
|
lock?: {
|
|
731
|
-
lockAcquisitionPolicy?: LockAcquisitionPolicy;
|
|
732
734
|
acquisitionPolicy?: LockAcquisitionPolicy;
|
|
733
735
|
timeoutSeconds?: number;
|
|
734
736
|
};
|
|
@@ -736,4 +738,4 @@ declare const rebuildPostgreSQLProjections: <EventType extends AnyEvent = AnyEve
|
|
|
736
738
|
projections: (ProjectorOptions<EventType, ReadEventMetadataWithGlobalPosition, PostgreSQLProcessorHandlerContext> | PostgreSQLProjectionDefinition<EventType>)[];
|
|
737
739
|
} | ProjectorOptions<EventType, ReadEventMetadataWithGlobalPosition, PostgreSQLProcessorHandlerContext>)) => PostgreSQLEventStoreConsumer<EventType>;
|
|
738
740
|
|
|
739
|
-
export { type AppendToStreamBeforeCommitHook, type CreateEventStoreSchemaOptions, DefaultPostgreSQLEventStoreProcessorBatchSize, DefaultPostgreSQLEventStoreProcessorPullingFrequencyInMs, DefaultPostgreSQLProcessorLockPolicy, type EventStoreSchemaMigrationOptions, type LockAcquisitionPolicy, type PongoAssertOptions, type PongoDocumentEvolve, type PongoMultiStreamProjectionOptions, type PongoProjectionHandlerContext, type PongoProjectionOptions, type PongoSingleStreamProjectionOptions, type PongoWithNotNullDocumentEvolve, type PongoWithNullableDocumentEvolve, type PostgreSQLCheckpointer, type PostgreSQLEventStoreConsumer, type PostgreSQLEventStoreConsumerConfig, type PostgreSQLEventStoreConsumerOptions, PostgreSQLEventStoreDefaultStreamVersion, type PostgreSQLEventStoreMessageBatchPuller, type PostgreSQLEventStoreMessageBatchPullerOptions, type PostgreSQLEventStoreMessageBatchPullerStartFrom, type PostgreSQLEventStoreMessageBatchPullerStartOptions, type PostgreSQLEventStoreMessagesBatchHandlerResult, type PostgreSQLProcessor, type PostgreSQLProcessorConnectionOptions, type PostgreSQLProcessorEachBatchHandler, type PostgreSQLProcessorEachMessageHandler, type PostgreSQLProcessorHandlerContext, type PostgreSQLProcessorLock, type PostgreSQLProcessorLockContext, type PostgreSQLProcessorLockOptions, type
|
|
741
|
+
export { type AppendToStreamBeforeCommitHook, type CreateEventStoreSchemaOptions, DefaultPostgreSQLEventStoreProcessorBatchSize, DefaultPostgreSQLEventStoreProcessorPullingFrequencyInMs, DefaultPostgreSQLProcessorLockPolicy, type EventStoreSchemaMigrationOptions, type LockAcquisitionPolicy, type PongoAssertOptions, type PongoDocumentEvolve, type PongoMultiStreamProjectionOptions, type PongoProjectionHandlerContext, type PongoProjectionOptions, type PongoSingleStreamProjectionOptions, type PongoWithNotNullDocumentEvolve, type PongoWithNullableDocumentEvolve, type PostgreSQLCheckpointer, type PostgreSQLEventStoreConsumer, type PostgreSQLEventStoreConsumerConfig, type PostgreSQLEventStoreConsumerOptions, PostgreSQLEventStoreDefaultStreamVersion, type PostgreSQLEventStoreMessageBatchPuller, type PostgreSQLEventStoreMessageBatchPullerOptions, type PostgreSQLEventStoreMessageBatchPullerStartFrom, type PostgreSQLEventStoreMessageBatchPullerStartOptions, type PostgreSQLEventStoreMessagesBatchHandlerResult, type PostgreSQLProcessor, type PostgreSQLProcessorConnectionOptions, type PostgreSQLProcessorEachBatchHandler, type PostgreSQLProcessorEachMessageHandler, type PostgreSQLProcessorHandlerContext, type PostgreSQLProcessorLock, type PostgreSQLProcessorLockContext, type PostgreSQLProcessorLockOptions, type PostgreSQLProcessorStartFrom, type PostgreSQLProjectionAssert, type PostgreSQLProjectionDefinition, type PostgreSQLProjectionHandler, type PostgreSQLProjectionHandlerContext, type PostgreSQLProjectionHandlerOptions, type PostgreSQLProjectionLock, type PostgreSQLProjectionLockContext, type PostgreSQLProjectionLockOptions, PostgreSQLProjectionSpec, type PostgreSQLProjectionSpecEvent, type PostgreSQLProjectionSpecOptions, type PostgreSQLProjectionSpecWhenOptions, type PostgreSQLProjectorOptions, type PostgreSQLRawBatchSQLProjection, type PostgreSQLRawSQLProjection, type PostgreSQLReactorOptions, type PostgreSQLWorkflowProcessorOptions, type PostgresEventStore, type PostgresEventStoreConnectionOptions, type PostgresEventStoreOptions, type PostgresReadEvent, type PostgresReadEventMetadata, type PostgresStreamExistsOptions, type ReadLastMessageGlobalPositionResult, type ReadMessagesBatchOptions, type ReadMessagesBatchResult, type ReadProcessorCheckpointResult, type ReadProjectionInfoResult, type StoreProcessorCheckpointResult, activateProjection, activateProjectionSQL, addDefaultPartitionSQL, addModuleForAllTenantsSQL, addModuleSQL, addPartitionSQL, addTablePartitions, addTenantForAllModulesSQL, addTenantSQL, appendToStream, appendToStreamSQL, assertSQLQueryResultMatches, callActivateProjection, callAppendToStream, callDeactivateProjection, callRegisterProjection, callReleaseProcessorLock, callStoreProcessorCheckpoint, callTryAcquireProcessorLock, callTryAcquireProjectionLock, cleanupLegacySubscriptionTables, createEventStoreSchema, deactivateProjection, deactivateProjectionSQL, defaultPostgreSQLOptions, defaultTag, documentDoesNotExist, documentExists, documentMatchingExists, documentsAreTheSame, documentsMatchingHaveCount, emmettPrefix, eventInStream, eventStoreSchemaMigrations, eventsInStream, expectPongoDocuments, expectSQL, getPostgreSQLEventStore, globalNames, globalTag, handleProjections, messagesTable, messagesTableSQL, newEventsInStream, pongoMultiStreamProjection, pongoProjection, pongoSingleStreamProjection, postgreSQLCheckpointer, postgreSQLEventStoreConsumer, postgreSQLEventStoreMessageBatchPuller, postgreSQLProcessorLock, postgreSQLProjection, postgreSQLProjectionLock, postgreSQLProjector, postgreSQLRawBatchSQLProjection, postgreSQLRawSQLProjection, postgreSQLReactor, postgreSQLWorkflowProcessor, processorsTable, processorsTableSQL, projectionsTable, projectionsTableSQL, readLastMessageGlobalPosition, readMessagesBatch, readProcessorCheckpoint, readProjectionInfo, readStream, rebuildPostgreSQLProjections, registerProjection, registerProjectionSQL, releaseProcessorLockSQL, sanitizeNameSQL, schemaMigration, schemaSQL, storeProcessorCheckpoint, storeSubscriptionCheckpointSQL, streamExists, streamsTable, streamsTableSQL, toProcessorLockKey, toProjectionLockKey, transactionToPostgreSQLProjectionHandlerContext, tryAcquireProcessorLockSQL, tryAcquireProjectionLockSQL, unknownTag, zipPostgreSQLEventStoreMessageBatchPullerStartFrom };
|