This is the MySQL adapter for Any-DB. It relies on the mysqlmysql database driver to create connection and query objects that conform to the Any-DB API. It's almost identical to
require('mysql')but lets your app code be somewhat more database agnostic.
API extensionsThe connections and queries this package creates inherit from the constructor functions in
require('mysql'), so any methods that
mysqlsupports beyond those specified by Any-DBconnection are also available to you.
Keep in mind that these methods will not necessarily work with other backends.
npm install any-db-mysql
Running testsCreate an empty test database:
Then run tests the node way:
mysql -uroot -e 'CREATE DATABASE IF NOT EXISTS any_db_test'
npm install && npm test