Skip to content

postgres

PostgresWatchdog = AsyncWatchdogRuntime & Readonly<{ enqueue: (client, job) => Promise<void>>; }>

PostgreSQL runtime with admission joined to the caller’s checked-out client.


PostgresPurgeStatement = Readonly<{ text: string; values: readonly (string | number | null)[]; }>

Parameterized queue purge joined to a producer’s existing PostgreSQL transaction.

const watchdogPostgresSchema: readonly string[]

Package-owned schema statements, to run through the deployment migration owner.

createPostgresWatchdog(options): PostgresWatchdog

Open the shared Effect engine on a migrated PostgreSQL database.

Readonly<{ execute: WatchdogExecutor; wake: Readonly<{ recompute: () => Promise<void>; }>; now?: () => number; }> & Readonly<{ database: Pick<Pool, "query">; }>

PostgresWatchdog


purgePostgresQueues(source): readonly Readonly<{ text: string; values: readonly (string | number | null)[]; }>[]

Purge every attempt in the queues yielded by trusted producer SQL.

PostgresPurgeStatement

readonly Readonly<{ text: string; values: readonly (string | number | null)[]; }>[]

Re-exports AsyncWatchdogOptions


Re-exports AsyncWatchdogRuntime