@arturwojnar/hermes-postgresql
Version:
Production-Ready TypeScript Outbox Pattern for PostgreSQL
11 lines • 397 B
JavaScript
import { Bytes } from '../subscribeToReplicationSlot/types.js';
const offset = (offset = 0) => ({
add: (bytes) => (offset += bytes),
addInt8: () => (offset += Bytes.Int8),
addInt16: () => (offset += Bytes.Int16),
addInt32: () => (offset += Bytes.Int32),
addInt64: () => (offset += Bytes.Int64),
value: () => offset,
});
export { offset };
//# sourceMappingURL=offset.js.map