Socket
Socket
Sign inDemoInstall

pg

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg - npm Package Compare versions

Comparing version 0.6.9 to 0.6.10

13

lib/defaults.js
module.exports = {
//database user's name
user: process.env.USER,
//name of database to connect
database: process.env.USER,
//database user's password
password: null,
//database port
port: 5432,
//number of rows to return at a time from a prepared statement's
//portal. 0 will return all rows at once
rows: 0,
//number of connections to use in connection pool
//0 will disable connection pooling
poolSize: 10,
//duration of node-pool timeout
//max milliseconds a client can go unused before it is removed
//from the pool and destroyed
poolIdleTimeout: 30000,
//frequeny to check for idle clients within the client pool
reapIntervalMillis: 1000,
// binary result mode
binary: false
}

3

lib/index.js

@@ -79,3 +79,4 @@ var EventEmitter = require('events').EventEmitter;

max: defaults.poolSize,
idleTimeoutMillis: defaults.poolIdleTimeout
idleTimeoutMillis: defaults.poolIdleTimeout,
reapIntervalMillis: defaults.reapIntervalMillis
});

@@ -82,0 +83,0 @@ return pool.acquire(cb);

{ "name": "pg",
"version": "0.6.9",
"version": "0.6.10",
"description": "PostgreSQL client - pure javascript & libpq with the same API",

@@ -13,3 +13,3 @@ "keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"],

"dependencies" : {
"generic-pool" : "1.0.7"
"generic-pool" : "1.0.9"
},

@@ -16,0 +16,0 @@ "scripts" : {

@@ -134,2 +134,3 @@ #node-postgres

## Production Use
* [yammer.com](http://www.yammer.com)
* [bayt.com](http://bayt.com)

@@ -136,0 +137,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