0.1.1 • Published 8 years ago
fastify-knex v0.1.1
fastify-knex
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 --saveUsage
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.