@arnaudnyc/fastify-knexjs

1.0.14 • Public • Published

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.

Package Sidebar

Install

npm i @arnaudnyc/fastify-knexjs

Weekly Downloads

1

Version

1.0.14

License

MIT

Unpacked Size

6.49 kB

Total Files

12

Last publish

Collaborators

  • adostes