Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wyseman

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wyseman - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

5

lib/dbclient.js

@@ -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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc