Generic SQL client for Hemera. If you need a different driver you can install it with npm install --save <driver>
.
For more informations see Knex.
npm i hemera-sql-store mysql --save
docker-compose up
npm run test
const hemera = new Hemera(nats)
hemera.use(require('hemera-joi'))
hemera.use(require('hemera-sql-store'), {
knex: {
dialect: 'mysql',
connection: {
host: '127.0.0.1',
user: '',
password: '',
database: 'test'
}
}
})
See Store Interface.