Package Exports
- @arnaudnyc/fastify-knexjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@arnaudnyc/fastify-knexjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Fastify KnexJS Plugin
Installation
npm install fastify-knexjs --saveUsage
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
License
Licensed under MIT.
