From f55e3b65128f13dad6c87745f8959a70432f96b4 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Sat, 16 May 2020 09:48:28 -0700 Subject: [PATCH] feat: PG allow providing a function for password (#5673) --- src/driver/postgres/PostgresConnectionCredentialsOptions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/postgres/PostgresConnectionCredentialsOptions.ts b/src/driver/postgres/PostgresConnectionCredentialsOptions.ts index d07c671c32a..98f56027ce0 100644 --- a/src/driver/postgres/PostgresConnectionCredentialsOptions.ts +++ b/src/driver/postgres/PostgresConnectionCredentialsOptions.ts @@ -28,7 +28,7 @@ export interface PostgresConnectionCredentialsOptions { /** * Database password. */ - readonly password?: string; + readonly password?: string | (() => string) | (() => Promise); /** * Database name to connect to.