// see also [http://www.postgresql.org/docs/9.3/static/libpq-ssl.html]
// see also [http://www.postgresql.org/docs/9.3/static/libpq-ssl.html]
'ssl',
'ssl',
// In addition to the values accepted by the corresponding server,
// In addition to the values accepted by the corresponding server,
// you can use "auto" to determine the right encoding from the
// you can use "auto" to determine the right encoding from the
// current locale in the client (LC_CTYPE environment variable on Unix systems)
// current locale in the client (LC_CTYPE environment variable on Unix systems)
'client_encoding',
'client_encoding',
// !! DONT SET THIS TO TRUE !!
// !! DONT SET THIS TO TRUE !!
// (unless you know what you're doing)
// (unless you know what you're doing)
// see [http://www.postgresql.org/message-id/flat/bc9549a50706040852u27633f41ib1e6b09f8339d845@mail.gmail.com#bc9549a50706040852u27633f41ib1e6b09f8339d845@mail.gmail.com]
// see [http://www.postgresql.org/message-id/flat/bc9549a50706040852u27633f41ib1e6b09f8339d845@mail.gmail.com#bc9549a50706040852u27633f41ib1e6b09f8339d845@mail.gmail.com]
'binary'
'binary'
]));
]));
}
}
returnnewPromise((resolve,reject)=>{
returnnewPromise((resolve,reject)=>{
...
@@ -88,21 +88,21 @@ class ConnectionManager extends AbstractConnectionManager {
...
@@ -88,21 +88,21 @@ class ConnectionManager extends AbstractConnectionManager {
@@ -110,13 +110,13 @@ class ConnectionManager extends AbstractConnectionManager {
...
@@ -110,13 +110,13 @@ class ConnectionManager extends AbstractConnectionManager {
return;
return;
}
}
responded=true;
responded=true;
debug(`connection acquired`);
debug('connection acquired');
resolve(connection);
resolve(connection);
});
});
// If we didn't ever hear from the client.connect() callback the connection timeout, node-postgres does not treat this as an error since no active query was ever emitted
// If we didn't ever hear from the client.connect() callback the connection timeout, node-postgres does not treat this as an error since no active query was ever emitted
commonKeys.length&&Utils.warn(`Model attributes (${commonKeys.join(',')}) found in finder method options but options.where object is empty. Did you forget to use options.where?`);
commonKeys.length&&Utils.warn(`Model attributes (${commonKeys.join(',')}) found in finder method options but options.where object is empty. Did you forget to use options.where?`);