fastify-knexjs

Fastify KnexJS Plugin

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
fastify-knexjs
25141.4.02 years ago5 years agoMinified + gzip package size for fastify-knexjs in KB

Readme

Fastify KnexJS Plugin
Test Semantic Release JavaScript Style Guide semantic-release
NPM

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.

Author

Nicolás Balduzzi

Contributors

Patrick Heneise

License

Licensed under MIT.