Jethro MySQL Connector
Lightweight MySQL connection handler
Feel free to visit the HenchSpace website here.
Installation
npm install jethro-mysql
API
//Require wrapper
var logger = require('jethro');
var mysql = require('./index.js');
//Route to native event handler
mysql.emitter.onAny(logger.mysql.output)
//Start connection
mysql.connect({
host : '127.0.0.1',
user : 'your_database_user',
password : 'your_database_password',
database : 'myapp_test'
})
//mysql.disconnect()
//mysql.sendCall('SELECT * FROM `users`')
Projects using this module:
Henchbot
Credits
Birthed by Henchman, with help from Matthew.
License
Licensed under the LGPL v3 License
Copyright (C) 2014 Samuel Mills (known as Henchman, under the github team: HenchSpace)
You can find full license here.