fastify-knex
Fastify Knex connection plugin, this plugin will allow you to use many different relational database wrappers from Knex.
List of supported wrappers:
- MySQL
- PostgreSQL
- SQLite
- OracleDB
- Maria
- 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.