ee-mysql

mysql connector supporting transactions and pooling

npm install ee-mysql
6 downloads in the last week
12 downloads in the last month

ee-mysql

mysql connector supporting transactions and pooling

var MySQL = require( "ee-mysql" );

var db = new MySQL( {
      database:         "dbName"
     , hosts: [
         {
              host:     "1dbHsot"
            , user:     "dbUser"
            , password: "dbPass"
            , weight:     "optional int ( used for load balancing )"
            , writable: true
        }
    ]
} );


db.query( "SELECT whatever FROM myDatabase WHERE id = ?;", [ id ], function( err, rows ){
    if ( err ) throw err;
    log.dir( rows );
} );
npm loves you