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

pg-query-formatter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-query-formatter - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

example.js

@@ -34,4 +34,4 @@ var Query = require('./query.js');

// 5. Update
var sql = new Query('UPDATE TABLE people SET %(%I = %L) WHERE id = %L', {name: 'George', age: 25, pet_id: null}, 4);
var sql = new Query('UPDATE people SET %(%I = %L) WHERE id = %L', {name: 'George', age: 25, pet_id: null}, 4);
console.log('5. '+sql.toString());
//>> UPDATE TABLE people SET name = 'George', age = 25, pet_id = NULL WHERE id = 4
//>> UPDATE people SET name = 'George', age = 25, pet_id = NULL WHERE id = 4
{
"name": "pg-query-formatter",
"version": "0.0.1",
"version": "0.0.2",
"description": "Lightweight query string formatter for node",

@@ -30,5 +30,4 @@ "url": "http://github.com/naturalatlas/pg-query-formatter",

"dependencies": {
"pg-escape": "~0.0.3",
"lodash": "*"
"pg-escape": "~0.0.3"
}
}

@@ -69,9 +69,9 @@ # pg-query-formatter

console.log('4. '+sql.toString());
//> SELECT id, name FROM teachers WHERE age > 20 AND age < 30
//>> SELECT id, name FROM teachers WHERE age > 20 AND age < 30
// 5. Update
var sql = new Query('UPDATE TABLE people SET %(%I = %L) WHERE id = %L', {name: 'George', age: 25, pet_id: null}, 4);
var sql = new Query('UPDATE people SET %(%I = %L) WHERE id = %L', {name: 'George', age: 25, pet_id: null}, 4);
console.log('5. '+sql.toString());
//>> UPDATE TABLE people SET name = 'George', age = 25, pet_id = NULL WHERE id = 4
//>> UPDATE people SET name = 'George', age = 25, pet_id = NULL WHERE id = 4
```

@@ -78,0 +78,0 @@

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