@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface PgQueryable

    Minimal subset of the pg.Pool interface used by PostgresTaskStore.

    Accepting this instead of a concrete Pool lets callers pass any pg-compatible query executor (connection pools, transaction wrappers, etc.) without forcing a hard dependency on the pg package.

    interface PgQueryable {
        query(
            text: string,
            values?: unknown[],
        ): Promise<{ rows: Record<string, unknown>[]; rowCount: number | null }>;
    }
    Index

    Methods

    Methods

    • Parameters

      • text: string
      • Optionalvalues: unknown[]

      Returns Promise<{ rows: Record<string, unknown>[]; rowCount: number | null }>