Skip to content
Asynchronous MySQL binding for Node.js
JavaScript C++ Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
docs
src
tools
.gitignore
.gitmodules
CHANGELOG
LICENSE
README
mysql-libmysqlclient.js
nodelint.cfg
package.json
wscript

README

MySQL bindings for Node.JS using libmysqlclient
===============================================

Documentation lives at http://wiki.github.com/Sannis/node-mysql-libmysqlclient/
and http://github.com/Sannis/node-mysql-libmysqlclient/tree/master/docs/.
The code lives at http://github.com/Sannis/node-mysql-libmysqlclient/.

Dependencies
------------

This module tested with Node version v0.2.1.

To build it you must install libmysqlclient library and development files for it.
Node-waf use mysql_config to determine the paths to the library and header files.

To install these dependencies, you can use the console.

For CentOS:
#> yum install mysql-devel

For openSUSE:
#> zypper install libmysqlclient-devel

For Ubuntu:
#> aptitude install libmysqlclient-dev

For Debian:
#> apt-get install libmysqlclient-dev

Build and use
-------------

To build the bindings library you should run this command in console:
$> node-waf configure build

To rebuild:
$> node-waf distclean configure build

To run tests:
$> git submodule update --init
$> node-waf test

The two files required to use these bindings are ./mysql-libmysqlclient.js and
./mysql_bindings.node(build/default/mysql_bindings.node).
Put module directory in your NODE_PATH or copy those two files where you need them.

Contributing
------------

I will be happy to hear tips from the more experienced programmers.
If you are interested in wide MySQL usage in Node.JS applications,
leave your comments to the code.
I'll be glad to see your forks and commits in them :)

To contribute any patches, simply fork this repository using GitHub
and send a pull request to me (http://github.com/Sannis). Thanks!
You can find other information about contribution and code style guide at
http://wiki.github.com/Sannis/node-mysql-libmysqlclient/contributing

Contributors
------------

* Oleg Efimov
  E-mail: <efimovov@gmail.com>
  GitHub: http://github.com/Sannis
  Site: http://sannis.ru
  
  Synchronouse version development.
  First libeio asynchronouse attempts.
  Writing tests.
  All commits: http://github.com/Sannis/node-mysql-libmysqlclient/commits/master?author=Sannis

* Surendra Singhi
  E-mail: <ssinghi@kreeti.com>
  GitHub: http://github.com/ssinghi, http://github.com/kreetitech
  Site: http://ssinghi.kreeti.com
  
  Make asynchronouse connecting and querying work.
  Fix segmentation faults, partialy closes #14.
  Some other fixes.
  All commits: http://github.com/Sannis/node-mysql-libmysqlclient/commits/master?author=ssinghi

* Akzhan Abdulin
  E-mail: <akzhan.abdulin@gmail.com>
  GitHub: http://github.com/akzhan
  
  Tests and code style fixes.
  All commits: http://github.com/Sannis/node-mysql-libmysqlclient/commits/master?author=akzhan

* Robin Duckett
  E-mail: <robin.duckett@gmail.com>
  GitHub: http://github.com/robinduckett
  
  Fix segfault error, partialy closes #14.
  All commits: http://github.com/Sannis/node-mysql-libmysqlclient/commits/master?author=robinduckett
  
* Dan Beam
  E-mail: <dan@danbeam.org>
  GitHub: http://github.com/danbeam
  Site: http://danbeam.org
  
  Simplify javascript logic of createConnection(),
  see 97040c3e7a5d4673ca6f340d8a9bc69da8e398d8.
  All commits: http://github.com/Sannis/node-mysql-libmysqlclient/commits/master?author=danbeam

* Maurits Lamers
  E-mail: <maurits@weidestraat.nl>
  GitHub: http://github.com/mauritslamers
  
  Fixing a bug where previous values were set instead of empty,
  see c4071181404362b60b9d3a3aed9784b25459fffa
  All commits: http://github.com/Sannis/node-mysql-libmysqlclient/commits/master?author=mauritslamers

License
-------

MIT license. See license text in file LICENSE.

Something went wrong with that request. Please try again.