lib/mysql/Connection.js
function Connection(conn) {
	if(!(this instanceof Connection)) {
		return new Connection(conn);
	}
	var self = this;
	if(!conn) { throw new TypeError("no connection set"); }
	self._connection = conn;
	self._connect    = Q.nfbind(self._connection.connect.bind(self._connection));
	self._query      = Q.nfbind(self._connection.query.bind(self._connection));

	// These do not have callbacks when PoolConnection is used
	//self._end        = Q.nfbind(self._connection.end.bind(self._connection));
	//self._release        = Q.nfbind(self._connection.release.bind(self._connection));

	self._changeUser = Q.nfbind(self._connection.changeUser.bind(self._connection));
	db.Connection.call(self, conn);
}
function Connection(conn) {
	if(!(this instanceof Connection)) {
		return new Connection(conn);
	}
	var self = this;
	if(!conn) { throw new TypeError("no connection set"); }
	self._connection = conn;
	self._connect    = Q.nfbind(self._connection.connect.bind(self._connection));
	self._query      = Q.nfbind(self._connection.query.bind(self._connection));

	// These do not have callbacks when PoolConnection is used
	//self._end        = Q.nfbind(self._connection.end.bind(self._connection));
	//self._release        = Q.nfbind(self._connection.release.bind(self._connection));

	self._changeUser = Q.nfbind(self._connection.changeUser.bind(self._connection));
	db.Connection.call(self, conn);
}
function Connection ( conn ) { if ( ! ( this instanceof Connection ) ) { return new Connection ( conn ) ; } var self = this ; if ( ! conn ) { throw new TypeError ( "no connection set" ) ; } self . _connection = conn ; self . _connect = Q . nfbind ( self . _connection . connect . bind ( self . _connection ) ) ; self . _query = Q . nfbind ( self . _connection . query . bind ( self . _connection ) ) ; // These do not have callbacks when PoolConnection is used //self._end        = Q.nfbind(self._connection.end.bind(self._connection)); //self._release        = Q.nfbind(self._connection.release.bind(self._connection)); self . _changeUser = Q . nfbind ( self . _connection . changeUser . bind ( self . _connection ) ) ; db . Connection . call ( self , conn ) ; }
Create MySQL connection object
Create MySQL connection object