Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Feb 9, 2021
Jul 11, 2020
Nov 20, 2017
Nov 22, 2017
Nov 9, 2017

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.

http://knexjs.org/#Installation-client

Author

Nicolás Balduzzi

Contributors

Patrick Heneise

License

Licensed under MIT.