# any-db-mysql

> The MySQL adapter for any-db

Latest version **2.3.0** (published 2020-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install any-db-mysql
pnpm add any-db-mysql
yarn add any-db-mysql
bun add any-db-mysql
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.0 |
| Published | 2020-12-01 |
| First published | 2013-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Stephen Sugden |
| Maintainers | grncdr |
| Keywords | any-db, anydb, mysql, adapter |

## Links

- npm: https://www.npmjs.com/package/any-db-mysql
- Repository: https://github.com/grncdr/node-any-db-mysql
- Homepage: https://github.com/grncdr/node-any-db-mysql#readme
- Issues: https://github.com/grncdr/node-any-db-mysql/issues
- npm.io page: https://npm.io/package/any-db-mysql

## Dependencies (2)

- [mysql](https://npm.io/package/mysql.md) 2.13.0
- [inherits](https://npm.io/package/inherits.md) 2.0.1

## Recent versions

- 2.3.0 (latest) — 2020-12-01
- 2.1.2 — 2014-07-13
- 2.1.1 — 2013-12-26
- 2.1.0 — 2013-12-26
- 2.0.2 — 2013-12-25
- 2.0.1 — 2013-12-25
- 1.0.1 — 2013-12-22
- 1.0.0 — 2013-11-06
- 1.0.0-rc2 — 2013-11-01
- 1.0.0-rc1 — 2013-10-17
- 1.0.0-alpha2 — 2013-09-18
- 1.0.0-alpha1 — 2013-09-08
- 0.0.0 — 2013-09-04

## README

# any-db-mysql

[![Build Status](https://secure.travis-ci.org/grncdr/node-any-db-mysql.png)](http://travis-ci.org/grncdr/node-any-db-mysql)

This is the MySQL adapter for Any-DB. It relies on the [mysql][mysql]
database driver to create connection and query objects that conform to the
[Any-DB API](https://github.com/grncdr/node-any-db-adapter-spec). 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][connection] 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

[connection]: https://github.com/grncdr/node-any-db-adapter-spec#connection
[mysql]: https://github.com/felixge/node-mysql

---
_Source: https://npm.io/package/any-db-mysql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
