import pg from 'pg'; import { RdbmsConnection } from '@shopify/shopify-app-session-storage'; export declare class PostgresConnection implements RdbmsConnection { sessionStorageIdentifier: string; private ready; private pool; private dbUrl; private ssl; /** * @param ssl TLS settings for `pg`. When omitted, the TLS settings of the * database URL apply (`ssl`, `sslmode`, `sslrootcert`, `sslcert`, `sslkey`). */ constructor(dbUrl: string, sessionStorageIdentifier: string, ssl?: pg.PoolConfig['ssl']); query(query: string, params?: any[]): Promise; /** * Runs a series of queries in a transaction - requires the use of a SINGLE client, * hence we can't use the query method above. * * @param queries an array of SQL queries to execute in a transaction */ transaction(queries: string[]): Promise; disconnect(): Promise; connect(): Promise; getDatabase(): string | undefined; hasTable(tablename: string): Promise; getArgumentPlaceholder(position: number): string; private init; } //# sourceMappingURL=postgres-connection.d.ts.map