Node-mysql-libmysqlclientMySQL bindings for Node.js using libmysqlclient. Check out the Github repo for the source and installation guide. |
Latest version 1.2.2:![]() ![]() |
Dependencies |
This module tested with Node version 0.4.12, 0.6.18 and 0.7.10. 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:
For openSUSE:
For Debian/Ubuntu:
Yes, you would use aptitude if you want. |
Installation |
You can install this module via NPM:
Also you can build latest source code from repository, see below. |
Build and use |
To get source code:
If you want to build specific version of node-mysql-libmysqlclient, checkout it:
To build the bindings you should run:
To rebuild:
To run tests:
To lint code:
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. Thanks! You can find other information about contributing and code style guide in wiki. |
Contributors |
|
License |
MIT license. See license text in file LICENSE. |