Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reekoheek/node-norm-mysql


https://github.com/reekoheek/node-norm-mysql

Last synced: 23 days ago
JSON representation

Awesome Lists containing this project

README

        

# node-norm-mysql

Mysql adapter for [node-norm](https://github.com/xinix-technology/node-norm)

```sh
npm i node-norm-mysql
```

## Usage

```js
const { Manager } = require('node-norm');
const manager = new Manager({
connections: [
{
adapter: require('node-norm-mysql'),
host: 'localhost',
user: 'root',
password: 'secret',
database: 'foo',
},
],
});

// then you can use node-norm manager to run session
```

## Test

```sh
npm test
```

You can use ephemeral mysql server courtesy to docker to test this package. Run command below

```sh
docker-compose up -d
npm test
docker-compose down
```