import { QueryRunner } from "../../query-runner/QueryRunner"; import { IsolationLevel } from "../types/IsolationLevel"; import { AuroraDataApiPostgresDriver } from "../postgres/PostgresDriver"; import { PostgresQueryRunner } from "../postgres/PostgresQueryRunner"; declare class PostgresQueryRunnerWrapper extends PostgresQueryRunner { driver: any; constructor(driver: any, mode: "master" | "slave"); } /** * Runs queries on a single postgres database connection. */ export declare class AuroraDataApiPostgresQueryRunner extends PostgresQueryRunnerWrapper implements QueryRunner { /** * Database driver used by connection. */ driver: AuroraDataApiPostgresDriver; /** * Promise used to obtain a database connection for a first time. */ protected databaseConnectionPromise: Promise; /** * Special callback provided by a driver used to release a created connection. */ protected releaseCallback: Function; constructor(driver: AuroraDataApiPostgresDriver, mode?: "master" | "slave"); /** * Creates/uses database connection from the connection pool to perform further operations. * Returns obtained database connection. */ connect(): Promise; /** * Starts transaction on the current connection. */ startTransaction(isolationLevel?: IsolationLevel): Promise; /** * Commits transaction. * Error will be thrown if transaction was not started. */ commitTransaction(): Promise; /** * Rollbacks transaction. * Error will be thrown if transaction was not started. */ rollbackTransaction(): Promise; /** * Executes a given SQL query. */ query(query: string, parameters?: any[]): Promise; } export {};