Skip to content

MySQL adapter for any-db

Notifications You must be signed in to change notification settings

grncdr/node-any-db-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

any-db-mysql

Build Status

This is the MySQL adapter for Any-DB. It relies on the mysql 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 extensions

The connections and queries this package creates inherit from the constructor functions in require('mysql'), so any methods that mysql supports beyond those specified by Any-DB are also available to you.

Keep in mind that these methods will not necessarily work with other backends.

Install

npm install any-db-mysql

Running tests

Create an empty test database:

mysql -uroot -e 'CREATE DATABASE IF NOT EXISTS any_db_test'

Then run tests the node way:

npm install && npm test

License

MIT

About

MySQL adapter for any-db

Resources

Stars

Watchers

Forks

Packages

No packages published