UNPKG

@arturwojnar/hermes-postgresql

Version:

Production-Ready TypeScript Outbox Pattern for PostgreSQL

11 lines (10 loc) 616 B
type Lsn = `${string}/${string}`; declare const getUpperAndLowerWAL: (lsn: Lsn) => number[]; declare const convertLsnToBigInt: (lsn: Lsn) => bigint; declare const convertLsnToBuffer: (lsn: Lsn) => Buffer<ArrayBuffer>; declare const convertBigIntToLsn: (lsn: bigint) => string; declare const incrementWAL: (lsn: Lsn) => bigint; declare const constructLsn: (lsn: Buffer) => Lsn; declare const isLsn: (value: string) => value is Lsn; declare const toLsn: (value: string) => Lsn; export { constructLsn, convertBigIntToLsn, convertLsnToBigInt, convertLsnToBuffer, getUpperAndLowerWAL, incrementWAL, isLsn, Lsn, toLsn, };