UNPKG

@arturwojnar/hermes-postgresql

Version:

Production-Ready TypeScript Outbox Pattern for PostgreSQL

12 lines 375 B
import postgres from 'postgres'; import { OutboxConsumer } from './OutboxConsumer.js'; export const createOutboxConsumer = (params) => { return new OutboxConsumer(params, (options) => postgres({ ...options, types: { ...options?.types, bigint: postgres.BigInt, }, })); }; //# sourceMappingURL=createOutboxConsumer.js.map