# simple-orm-mysql-adapter

> MySQL adapter for simple orm

Latest version **0.6.0** (published 2014-06-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-orm-mysql-adapter
pnpm add simple-orm-mysql-adapter
yarn add simple-orm-mysql-adapter
bun add simple-orm-mysql-adapter
```

## 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.6.0 |
| Published | 2014-06-22 |
| First published | 2014-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.11.10 |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ryan Zec |
| Maintainers | ryanzec |
| Keywords | orm, mysql |

## Links

- npm: https://www.npmjs.com/package/simple-orm-mysql-adapter
- Repository: https://github.com/simple-orm/mysql-adapter
- Issues: https://github.com/simple-orm/mysql-adapter/issues
- npm.io page: https://npm.io/package/simple-orm-mysql-adapter

## Dependencies (4)

- [squel](https://npm.io/package/squel.md) 3.4.1
- [lodash](https://npm.io/package/lodash.md) 2.4.1
- [bluebird](https://npm.io/package/bluebird.md) 1.2.4
- [string-format](https://npm.io/package/string-format.md) 0.2.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.6.0 (latest) — 2014-06-22
- 0.5.0 — 2014-06-15
- 0.4.0 — 2014-06-14
- 0.2.2 — 2014-06-02
- 0.2.1 — 2014-05-31
- 0.2.0 — 2014-05-31
- 0.1.2 — 2014-05-20
- 0.1.1 — 2014-05-20
- 0.1.0 — 2014-05-19

## README

# Simple ORM MySQL Adapter

Mysql (and MariaDB) adapter for [simple orm](https://github.com/simple-orm/core).

# Tests

There are no tests in this repository, tests are handled with the [core](https://github.com/simple-orm/core) repository.

# Feature Support

* Transactions - Supported
* Joins - Supported

# Quick Start

You can install this data adapter with:

```npm install simple-orm-data-adapter```

The data adapter does not assume anything with the creation of the database connection, you are free to create the connection however you want.  To create an instance of the data adapter, you need to pass the require an object with a property called connection.  you could do something like this:

```javascript
//mysql-connection.js
var mysql = require('mysql');
var configuration = require('../configurations/data.json');

module.exports = {
  connection: mysql.createConnection({
    host: configuration.host,
    user: configuration.username,
    password: configuration.password,
    port: configuration.port,
    database: configuration.database
  })
};
```

```javascript
var mysqlAdapter = require('simple-orm-mysql-adapter').create();
mysqlAdapter.setConnection(require('./mysql-connection'));
```

## LICENSE

MIT

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