Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reekoheek/node-norm-mysql
https://github.com/reekoheek/node-norm-mysql
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/reekoheek/node-norm-mysql
- Owner: reekoheek
- License: mit
- Created: 2017-02-11T05:40:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:44:56.000Z (almost 2 years ago)
- Last Synced: 2024-07-09T15:54:18.713Z (4 months ago)
- Language: JavaScript
- Size: 856 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xinix - node-norm-mysql - Norm mysql adapter - [reekoheek](https://github.com/reekoheek) (Grouping / Node)
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
```