PGConnection | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Interface PGConnection

    interface PGConnection {
        close(): Promise<void>;
        getBackendProcessId(): undefined | number;
        getRefObject(): { ref(): void; unref(): void };
        query(
            sql: string,
            params?: unknown[],
            options?: PGQueryOptions,
        ): Promise<PGQueryResult<any>>;
    }
    Index

    Methods

    • Returns Promise<void>

    • Returns undefined | number

    • Returns { ref(): void; unref(): void }

    • Parameters

      Returns Promise<PGQueryResult<any>>