Skip to content

Commit

Permalink
feat(postgres): backport stream dialectOption to v6 (#16868)
Browse files Browse the repository at this point in the history
  • Loading branch information
accoleon committed Feb 2, 2024
1 parent cb8ea88 commit a250058
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dialects/postgres/connection-manager.js
Expand Up @@ -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',
]));
}

Expand Down

0 comments on commit a250058

Please sign in to comment.