Interface representing a PostgreSQL connection with methods for querying and executing statements. PostgresConnection

interface PostgresConnection {
    execute: (
        statement: string,
        params: PostgresV3ParameterValue[],
    ) => number;
    query: (
        statement: string,
        params: PostgresV3ParameterValue[],
    ) => PostgresV3RowSet;
}

Properties

Properties

execute: (statement: string, params: PostgresV3ParameterValue[]) => number

Executes a statement on the database with the specified parameters.

Type declaration

    • (statement: string, params: PostgresV3ParameterValue[]): number
    • Parameters

      Returns number

      The number of rows affected by the execution.

query: (
    statement: string,
    params: PostgresV3ParameterValue[],
) => PostgresV3RowSet

Queries the database with the specified statement and parameters.

Type declaration