fastify-knexjs
v1.4.0
Published
Fastify KnexJS Plugin
Downloads
2,298
Readme
Fastify KnexJS Plugin
Installation
npm install fastify-knexjs --save
Usage
fastify.register(require('fastify-knexjs'), options, (err) =>
console.error(err)
);
fastify.get('/', (request, reply) => {
console.log(fastify.knex); // Knex DB instance
});
Options
KnexJS client DB configuration JSON object.
http://knexjs.org/#Installation-client
Author
Contributors
License
Licensed under MIT.