sadams / fastify-knexjs

Fastify KnexJS Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fastify KnexJS Plugin

JavaScript Style Guide Build Status

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

License

Licensed under MIT.

About

Fastify KnexJS Plugin

License:MIT License


Languages

Language:JavaScript 100.0%