actrone-memory
    Preparing search index...

    Interface PgLike

    Minimal structural interface for a Postgres client (pg Pool/Client compatible).

    Injected, like the Redis and Qdrant adapters, so actrone-memory needs no hard pg dependency and the store is unit-testable without a database. Anything exposing this query shape works, including a pg.Pool, a pg.Client, or a pooled wrapper.

    interface PgLike {
        query<R = Record<string, unknown>>(
            sql: string,
            values?: readonly unknown[],
        ): Promise<{ rows: R[]; rowCount?: number | null }>;
    }
    Index
    • Type Parameters

      • R = Record<string, unknown>

      Parameters

      • sql: string
      • Optionalvalues: readonly unknown[]

      Returns Promise<{ rows: R[]; rowCount?: number | null }>