We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de8f84d commit eafd8ecCopy full SHA for eafd8ec
test/init.js
@@ -21,11 +21,15 @@ var url = 'postgres://' + (config.username || config.user) + ':' +
21
config.password + '@' + (config.host || config.hostname) + ':' +
22
config.port + '/' + config.database;
23
24
-global.getDataSource = global.getSchema = function(useUrl) {
+global.getDBConfig = function(useUrl) {
25
var settings = config;
26
if (useUrl) {
27
settings = {url: url};
28
- }
+ };
29
+ return settings;
30
+}
31
+global.getDataSource = global.getSchema = function(useUrl) {
32
+ var settings = getDBConfig(useUrl);
33
var db = new DataSource(require('../'), settings);
34
db.log = function(a) {
35
// console.log(a);
0 commit comments