diff --git a/README.md b/README.md index e299f39..819a7c4 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ var configuration = { user: 'dabramov', // Database username password: 'password', // Database password adapter: 'pg', // Database adapter: pg, mysql + ssl: false, // Specify whether ssl should be used (postgres only). // Parameters are optional. If you provide them then any occurrences of the parameter (i.e. FOO) in the SQL scripts will be replaced by the value (i.e. bar). parameters: { "FOO": "bar" diff --git a/adapters/pg.js b/adapters/pg.js index 9229272..0072264 100644 --- a/adapters/pg.js +++ b/adapters/pg.js @@ -6,7 +6,8 @@ module.exports = function (config, logger) { port: config.port, database: config.db, user: config.user, - password: config.password + password: config.password, + ssl: config.ssl }); function exec(query, values) {