npm install fastify-knexjs --save
fastify.register(require('fastify-knexjs'), options, err => console.error(err))
fastify.get('/', (request, reply) => {
console.log(fastify.knex) // Knex DB instance
})
KnexJS client DB configuration JSON object.
http://knexjs.org/#Installation-client
Licensed under MIT.