New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dbdiff

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbdiff - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

10

dialects/postgres.js

@@ -7,2 +7,9 @@ var dialects = require('./')

class PostgresDialect {
_unescape (str) {
if (str.substring(0, 1) === '"' && str.substring(str.length - 1) === '"') {
return str.substring(1, str.length - 1)
}
return str
}
describeDatabase (options) {

@@ -117,3 +124,4 @@ var conString

constraints.forEach((constraint) => {
var table = schema.tables.find((table) => table.name === constraint.table_from && table.schema === constraint.nspname)
var tableFrom = this._unescape(constraint.table_from)
var table = schema.tables.find((table) => table.name === tableFrom && table.schema === constraint.nspname)
var { description } = constraint

@@ -120,0 +128,0 @@ var i = description.indexOf('(')

2

package.json
{
"name": "dbdiff",
"version": "0.3.2",
"version": "0.3.3",
"description": "Compares two postgresql databases and prints SQL commands to modify the first one in order to match the second one",

@@ -5,0 +5,0 @@ "main": "index.js",

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