index.js
function Client(options) {
  events.EventEmitter.call(this);
  //Unlimited amount of listeners for internal event queues by default
  this.setMaxListeners(0);
  this.options = utils.extend({}, optionsDefault, options);
  //current connection index
  this.connectionIndex = 0;
  //current connection index for prepared queries
  this.prepareConnectionIndex = 0;
  this.preparedQueries = {};
  
  this._createPool();
}
function Client(options) {
  events.EventEmitter.call(this);
  //Unlimited amount of listeners for internal event queues by default
  this.setMaxListeners(0);
  this.options = utils.extend({}, optionsDefault, options);
  //current connection index
  this.connectionIndex = 0;
  //current connection index for prepared queries
  this.prepareConnectionIndex = 0;
  this.preparedQueries = {};
  
  this._createPool();
}
function Client ( options ) { events . EventEmitter . call ( this ) ; //Unlimited amount of listeners for internal event queues by default this . setMaxListeners ( 0 ) ; this . options = utils . extend ( { } , optionsDefault , options ) ; //current connection index this . connectionIndex = 0 ; //current connection index for prepared queries this . prepareConnectionIndex = 0 ; this . preparedQueries = { } ; this . _createPool ( ) ; }
Represents a pool of connection to multiple hosts
Represents a pool of connection to multiple hosts