refactor(Postgres Node): Backport connection pooling to postgres v1 (#12484)

This commit is contained in:
Danny Martini
2025-01-16 11:09:12 +01:00
committed by GitHub
parent c97bd48a77
commit 35cb10c5e7
12 changed files with 49 additions and 69 deletions

View File

@@ -28,6 +28,7 @@ export type EnumInfo = {
export type PgpClient = pgPromise.IMain<{}, pg.IClient>;
export type PgpDatabase = pgPromise.IDatabase<{}, pg.IClient>;
export type PgpConnectionParameters = pg.IConnectionParameters<pg.IClient>;
export type PgpConnection = pgPromise.IConnected<{}, pg.IClient>;
export type ConnectionsData = { db: PgpDatabase; pgp: PgpClient };
export type QueriesRunner = (
@@ -57,6 +58,7 @@ export type PostgresNodeCredentials = {
database: string;
user: string;
password: string;
maxConnections: number;
allowUnauthorizedCerts?: boolean;
ssl?: 'disable' | 'allow' | 'require' | 'verify' | 'verify-full';
} & (