import { Client, Pool, QueryResult as QueryResult$1, QueryResultRow } from "pg"; import { RuntimeDriverDescriptor, RuntimeDriverInstance } from "@prisma-next/framework-components/execution"; import { SqlDriver } from "@prisma-next/sql-relational-core/ast"; //#region src/postgres-driver.d.ts type QueryResult = QueryResult$1; type PostgresBinding = { readonly kind: 'url'; readonly url: string; } | { readonly kind: 'pgPool'; readonly pool: Pool; } | { readonly kind: 'pgClient'; readonly client: Client; }; interface PostgresCursorOptions { readonly batchSize?: number; readonly disabled?: boolean; } interface PostgresDriverOptions { readonly connect: { client: Client; } | { pool: Pool; }; readonly cursor?: PostgresCursorOptions | undefined; /** * Use server-side prepared statements for `executePrepared`. Default * `true`. Set `false` when running behind a transaction-mode pooler that * does not support session-scoped prepared statements (e.g. PgBouncer * transaction mode). */ readonly preparedStatements?: boolean | undefined; } type PostgresDriverCreateOptions = Omit; //#endregion //#region src/exports/runtime.d.ts type PostgresRuntimeDriver = RuntimeDriverInstance<'sql', 'postgres'> & SqlDriver; declare const postgresRuntimeDriverDescriptor: RuntimeDriverDescriptor<'sql', 'postgres', PostgresDriverCreateOptions, PostgresRuntimeDriver>; //#endregion export { type PostgresBinding, type PostgresDriverCreateOptions, PostgresRuntimeDriver, type QueryResult, postgresRuntimeDriverDescriptor as default }; //# sourceMappingURL=runtime.d.mts.map