Files
event-store/adapters/postgres/connection.ts
2025-04-25 22:39:47 +00:00

8 lines
310 B
TypeScript

import type { Options, Sql } from "postgres";
export type PostgresConnection = [PostgresConnectionUrl, Options<any>?] | [Options<any>] | Sql | PostgresConnectionFactory;
type PostgresConnectionUrl = `postgres://${string}:${string}@${string}:${number}/${string}`;
type PostgresConnectionFactory = () => Sql;