Skip to content

Felipe-BP/nestjs-knex

Repository files navigation

Nest Logo

Easy peasy way to integrate Nestjs and Knex.js! 🚀

Why?

We love Nestjs framework and Knex.js SQL Builder, so, I decided to create this package to abstract the use of Knex.js with Nestjs, which uses TypeScript.

Installation

To install this generated project:

$ npm install nestjs-knexjs knex

Install the expected client library for your database:

$ npm install pg
$ npm install sqlite3
$ npm install mysql
$ npm install mysql2
$ npm install oracledb
$ npm install mssql

(or yarn equivalent)

Usage

Check out the examples folder.

Contributing

All contributions are welcome. Use the pull request as a way to contribute to the evolution of the package. My intention is over time to add pipelines with github actions as a way to facilitate contributions.

Contribution Guidelines

This package is configured with commitlint, so, to contribute you have to know about the rules of commitlint

Author