postgres
Type Aliases
Section titled “Type Aliases”PostgresWatchdog
Section titled “PostgresWatchdog”PostgresWatchdog =
AsyncWatchdogRuntime&Readonly<{enqueue: (client,job) =>Promise<void>>; }>
PostgreSQL runtime with admission joined to the caller’s checked-out client.
PostgresPurgeStatement
Section titled “PostgresPurgeStatement”PostgresPurgeStatement =
Readonly<{text:string;values: readonly (string|number|null)[]; }>
Parameterized queue purge joined to a producer’s existing PostgreSQL transaction.
Variables
Section titled “Variables”watchdogPostgresSchema
Section titled “watchdogPostgresSchema”
constwatchdogPostgresSchema: readonlystring[]
Package-owned schema statements, to run through the deployment migration owner.
Functions
Section titled “Functions”createPostgresWatchdog()
Section titled “createPostgresWatchdog()”createPostgresWatchdog(
options):PostgresWatchdog
Open the shared Effect engine on a migrated PostgreSQL database.
Parameters
Section titled “Parameters”options
Section titled “options”Readonly<{ execute: WatchdogExecutor;
wake: Readonly<{ recompute: () => Promise<void>; }>; now?: ()
=> number; }> & Readonly<{ database: Pick<Pool, "query">; }>
Returns
Section titled “Returns”purgePostgresQueues()
Section titled “purgePostgresQueues()”purgePostgresQueues(
source): readonlyReadonly<{text:string;values: readonly (string|number|null)[]; }>[]
Purge every attempt in the queues yielded by trusted producer SQL.
Parameters
Section titled “Parameters”source
Section titled “source”Returns
Section titled “Returns”readonly Readonly<{ text: string; values: readonly (string |
number | null)[]; }>[]
References
Section titled “References”AsyncWatchdogOptions
Section titled “AsyncWatchdogOptions”Re-exports AsyncWatchdogOptions
AsyncWatchdogRuntime
Section titled “AsyncWatchdogRuntime”Re-exports AsyncWatchdogRuntime