UNPKG

pg-trx-outbox

Version:

Transactional outbox of Postgres for Node.js with little Event Sourcing

15 lines (14 loc) 467 B
import type { Pg } from './pg.ts'; import type { Adapter, Options, OutboxMessage, StartStop } from './types.ts'; export declare class Es implements StartStop { private lastEventId; private pg; private adapter; private options; constructor(pg: Pg, adapter: Adapter, options: Options); start(): Promise<void>; stop(): Promise<void>; setLastEventId(index: OutboxMessage['id']): void; getLastEventId(): string; private initSync; }