fastify-knex

0.1.1 • Public • Published

fastify-knex

js-standard-style

Fastify Knex connection plugin, this plugin will allow you to use many different relational database wrappers from Knex.

List of supported wrappers:

  1. MySQL
  2. PostgreSQL
  3. SQLite
  4. OracleDB
  5. Maria
  6. MS SQL

Under the hood the knex is used, the options that you pass to register will be passed to the PostgreSQL pool builder.

Install

npm i fastify-knex --save

Usage

Add it to you project with register and you are done!
This plugin will add the knex namespace in your Fastify instance.

Upcoming TODO

  • Add test cases
  • Add examples

License

Licensed under MIT.

Package Sidebar

Install

npm i fastify-knex

Weekly Downloads

4

Version

0.1.1

License

MIT

Last publish

Collaborators

  • incubus8