ee-db-cluster
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -140,4 +140,5 @@ !function(){ | ||
if (index >= 0) this.connections[mode].splice(index, 1); | ||
else log.error('failed to remove connection from pool!'); | ||
if(dev) log('«'+mode+'» connection has ended...'); | ||
if(dev) log('«'+mode+'» connection has ended, removed connection at index «'+index+'»...'); | ||
}.bind(this)); | ||
@@ -144,0 +145,0 @@ |
@@ -105,3 +105,3 @@ !function(){ | ||
if(dev) log('creating conncetion ...'); | ||
if(dev) log('creating connection ...'); | ||
@@ -148,2 +148,5 @@ // no throtling (1000 msec)? | ||
if (index >= 0) this._connections.splice(index, 1); | ||
// decrdease idle count | ||
this._idle-- | ||
@@ -150,0 +153,0 @@ // is there need to create new conenctions? |
{ | ||
"name" : "ee-db-cluster" | ||
, "description" : "db cluster implementation for ee-orm" | ||
, "version" : "0.1.3" | ||
, "version" : "0.1.4" | ||
, "homepage" : "https://github.com/eventEmitter/ee-db-cluster" | ||
@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" |
@@ -15,2 +15,7 @@ # ee-db-cluster | ||
[![Build Status](https://travis-ci.org/eventEmitter/ee-db-cluster.png?branch=master)](https://travis-ci.org/eventEmitter/ee-db-cluster) | ||
[![Build Status](https://travis-ci.org/eventEmitter/ee-db-cluster.png?branch=master)](https://travis-ci.org/eventEmitter/ee-db-cluster) | ||
## Version History | ||
- 0.1.4: fixed bug in the cluster node implementation which didnt remove conenctions from the idle counter when a connection gets closed. Added version history to the docs |
@@ -31,3 +31,3 @@ | ||
username: 'eb-client' | ||
, password: '' | ||
, password: 'wiegehtesdir55' | ||
, host: '10.0.100.1' | ||
@@ -74,2 +74,3 @@ }); | ||
, from: 'vandi' | ||
, database: 'eventbox' | ||
, select: [ | ||
@@ -85,2 +86,3 @@ 'id' | ||
, from: 'event' | ||
, database: 'eventbox' | ||
, select: ['id', { | ||
@@ -96,2 +98,3 @@ alias: 'bestORMEver' | ||
, from: 'vandi' | ||
, database: 'eventbox' | ||
, select: [ | ||
@@ -105,4 +108,6 @@ 'id' | ||
} | ||
]); | ||
], function(err, result){ | ||
log(err, result); | ||
}); | ||
}); | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17600
462
20