From 265d1aeb8764aa8ba199318a2c20abc6380b1d85 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 d07c671c32..98f56027ce 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.