8 lines
310 B
TypeScript
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;
|