UNPKG

@arturwojnar/hermes-postgresql

Version:

Production-Ready TypeScript Outbox Pattern for PostgreSQL

11 lines (10 loc) 516 B
import { HermesSql } from '../common/types.js'; import { ColumnConfig, OnInsert, type LogicalReplicationState } from './types.js'; export type LogicalReplicationParams<InsertResult> = { state: LogicalReplicationState; sql: HermesSql; columnConfig: ColumnConfig<keyof InsertResult>; onInsert: OnInsert<InsertResult>; }; declare const startLogicalReplication: <InsertResult>(params: LogicalReplicationParams<InsertResult>) => Promise<void>; export { LogicalReplicationState, startLogicalReplication };