node-norm-mysql
v1.3.2
Published
Mysql adapter for norm
Downloads
23
Readme
node-norm-mysql
Mysql adapter for node-norm
npm i node-norm-mysql
Usage
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
npm test
You can use ephemeral mysql server courtesy to docker to test this package. Run command below
docker-compose up -d
npm test
docker-compose down