Comparing version 1.0.11 to 1.0.12
@@ -10,2 +10,3 @@ //Low level connection to PostgreSQL database | ||
//- If schema initialization SQL fails, and we created the DB, should we then delete it? | ||
//- If Postgres restarted, we lose our connection. Is there a way to recover/reconnect? | ||
//- | ||
@@ -61,2 +62,6 @@ const DefaultDB = 'template1' | ||
} | ||
this.client.on('error', err => { | ||
this.log.trace("Unexpected error from database:", err.message) | ||
this.disconnect() //Is there a way to recover from this? | ||
}) | ||
} | ||
@@ -63,0 +68,0 @@ |
{ | ||
"name": "wyseman", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "PostgreSQL Schema Manager with Javascript, Ruby, TCL API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -6,3 +6,3 @@ //Build test database and check it | ||
const assert = require("assert"); | ||
const { DatabaseName } = require('../settings') | ||
const { DatabaseName, DBAdmin } = require('../settings') | ||
var fs = require('fs') | ||
@@ -14,2 +14,3 @@ //var logger = require('util').debuglog('checkdb') | ||
database: DatabaseName, | ||
user: DBAdmin, | ||
listen: "DummyChannel", //Cause immediate connection to DB, rather than deferred | ||
@@ -16,0 +17,0 @@ schema: __dirname + "/../schema.sql" |
@@ -6,3 +6,3 @@ //Check table styles in data dictionary | ||
const assert = require("assert"); | ||
const { DatabaseName } = require('../settings') | ||
const { DatabaseName, DBAdmin } = require('../settings') | ||
var fs = require('fs') | ||
@@ -14,2 +14,3 @@ var log = new (require('../logger'))('metadata') | ||
database: DatabaseName, | ||
user: DBAdmin, | ||
listen: "DummyChannel", //Cause immediate connection to DB, rather than deferred | ||
@@ -16,0 +17,0 @@ schema: __dirname + "/../schema.sql" |
module.exports={ | ||
DatabaseName: process.env.TEST_DB_NAME || "wysemanTestDB" | ||
DatabaseName: process.env.TEST_DB_NAME || "wysemanTestDB", | ||
DBAdmin: "admin", | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
618504
626