UNPKG

pg-transactional-outbox

Version:

A PostgreSQL based transactional outbox and inbox pattern implementation to support exactly once message processing (with at least once message delivery).

11 lines 732 B
import { DatabaseClient } from '../common/database'; import { ListenerConfig } from '../common/listener-config'; import { StoredTransactionalMessage } from './transactional-message'; /** * Does increase the finished_attempts count by one. * @param message The message to NOT acknowledge. * @param client The database client. Must be part of the transaction where the message handling changes are done. * @param config The configuration settings that defines the database schema. */ export declare const increaseMessageFinishedAttempts: ({ id }: StoredTransactionalMessage, client: DatabaseClient, { settings }: Pick<ListenerConfig, "settings">) => Promise<void>; //# sourceMappingURL=increase-message-finished-attempts.d.ts.map