pg-trx-outbox
Version:
Transactional outbox of Postgres for Node.js with little Event Sourcing
15 lines (14 loc) • 464 B
TypeScript
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(id: OutboxMessage['id']): void;
getLastEventId(): string;
private initSync;
}