bknd
Version:
Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.
13 lines (12 loc) • 530 B
TypeScript
import { type PostgresDialectConfig as KyselyPostgresDialectConfig } from "kysely";
import { PostgresConnection } from "./PostgresConnection";
import type { Pool } from "pg";
export type PostgresDialectConfig = Omit<KyselyPostgresDialectConfig, "pool"> & {
pool: Pool;
};
export declare class PgPostgresConnection extends PostgresConnection<Pool> {
name: string;
constructor(config: PostgresDialectConfig);
close(): Promise<void>;
}
export declare function pg(config: PostgresDialectConfig): PgPostgresConnection;