UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

12 lines (11 loc) 658 B
import { type DbFunctions } from "../Connection"; import { type Dialect, type KyselyPlugin } from "kysely"; import { PostgresConnection } from "./PostgresConnection"; export type Constructor<T> = new (...args: any[]) => T; export type CustomPostgresConnection = { supports?: Partial<PostgresConnection["supported"]>; fn?: Partial<DbFunctions>; plugins?: KyselyPlugin[]; excludeTables?: string[]; }; export declare function createCustomPostgresConnection<T extends Constructor<Dialect>, C extends ConstructorParameters<T>[0]>(name: string, dialect: Constructor<Dialect>, options?: CustomPostgresConnection): (config: C) => PostgresConnection;