# @opdb/mysql

> OpDB MySQL Adapter

Latest version **0.0.3** (published 2020-04-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @opdb/mysql
pnpm add @opdb/mysql
yarn add @opdb/mysql
bun add @opdb/mysql
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2020-04-05 |
| First published | 2020-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | OpDB / Marvin Scharle |
| Maintainers | marvinscharle |

## Links

- npm: https://www.npmjs.com/package/@opdb/mysql
- Repository: https://github.com/OpDatabase/base
- Homepage: https://github.com/OpDatabase/base#readme
- Issues: https://github.com/OpDatabase/base/issues
- npm.io page: https://npm.io/package/@opdb/mysql

## Dependencies (2)

- [mysql](https://npm.io/package/mysql.md) ^2.18.1
- [@opdb/base](https://npm.io/package/@opdb/base.md) 0.0.3

## Recent versions

- 0.0.3 (latest) — 2020-04-05
- 0.0.2 — 2020-03-21
- 0.0.1 — 2020-02-15

## README

# @opdb/mysql

This is an adapter for `@opdb/base` for connecting to MySQL servers.

Run this to register and setup your MySQL connection:

```typescript
import { Base } from '@opdb/base';
import { provideMysqlConnection } from '@opdb/mysql';

provideMysqlConnection({
  // your MySQL config here
  // You can supply your connection url using field `url`.
  // Config options: https://github.com/mysqljs/mysql#connection-options
});

// Will be executed using your MySQL connection, see @opdb/base for more details
Base.execute('SELECT * FROM users');
```

## More Information

- [@opdb/base](https://www.npmjs.com/package/@opdb/base)
- [MySQL connection options](https://github.com/mysqljs/mysql#connection-options)

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