From a25005855b5282533a17235b3dd2d2a5eb8723c2 Mon Sep 17 00:00:00 2001 From: Kevin Xu Date: Fri, 2 Feb 2024 13:11:15 -0800 Subject: [PATCH] feat(postgres): backport stream dialectOption to v6 (#16868) --- src/dialects/postgres/connection-manager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dialects/postgres/connection-manager.js b/src/dialects/postgres/connection-manager.js index 2b1bf6894f23..46b4b43ee8c6 100644 --- a/src/dialects/postgres/connection-manager.js +++ b/src/dialects/postgres/connection-manager.js @@ -123,7 +123,10 @@ class ConnectionManager extends AbstractConnectionManager { 'lock_timeout', // Postgres allows additional session variables to be configured in the connection string in the `options` param. // see [https://www.postgresql.org/docs/14/libpq-connect.html#LIBPQ-CONNECT-OPTIONS] - 'options' + 'options', + // The stream acts as a user-defined socket factory for postgres. In particular, it enables IAM autentication + // with Google Cloud SQL. see: https://github.com/sequelize/sequelize/issues/16001#issuecomment-1561136388 + 'stream', ])); }