Socket
Socket
Sign inDemoInstall

any-db-mysql

Package Overview
Dependencies
13
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    any-db-mysql

The MySQL adapter for any-db


Version published
Weekly downloads
765
decreased by-4.14%
Maintainers
1
Install size
791 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 01 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc