fastify-knexjs

    1.4.0 • Public • Published

    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.

    Install

    npm i fastify-knexjs

    DownloadsWeekly Downloads

    2,157

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    10.8 kB

    Total Files

    15

    Last publish

    Collaborators

    • nbalduzzi