SQLQueryHelperjs - v1.2.6
    Preparing search index...

    Interface PostgresQueryConnection

    Minimal PostgreSQL client contract accepted by the PostgreSQL query builders.

    interface PostgresQueryConnection {
        query<T extends QueryResultRow = QueryResultRow>(
            sql: string,
            params?: unknown[],
        ): Promise<{ rows: T[]; rowCount?: number | null }>;
    }
    Index

    Methods

    Methods

    • Type Parameters

      • T extends QueryResultRow = QueryResultRow

      Parameters

      • sql: string
      • Optionalparams: unknown[]

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