Documentation
    Preparing search index...

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

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

    Properties

    Properties

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

    Executes a statement on the database with the specified parameters.

    Type declaration

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

        Returns bigint

        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