Socket
Socket
Sign inDemoInstall

libpq

Package Overview
Dependencies
13
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.3 to 0.2.4

README.md

1

index.js

@@ -34,3 +34,2 @@ var PQ = module.exports = require('bindings')('addon.node').PQ;

assert(cb, 'Must provide a connection callback');
console.log(paramString, cb)
this.$connect(paramString, cb);

@@ -37,0 +36,0 @@ };

{
"name": "libpq",
"version": "0.2.3",
"version": "0.2.4",
"description": "Low-level native bindings to PostgreSQL libpq",

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

@@ -30,3 +30,2 @@ var PQ = require('../')

this.pq.connectSync();
this.pq.exec('SELECT NOW() as my_col');
});

@@ -38,2 +37,7 @@

it('executes query', function() {
this.pq.exec('SELECT NOW() as my_col');
assert.equal(this.pq.resultStatus(), 'PGRES_TUPLES_OK');
})
it('has 1 tuple', function() {

@@ -40,0 +44,0 @@ assert.equal(this.pq.ntuples(), 1);

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc