@squareboat/nestjs-objection
Version:
The objection database package for your NestJS Applications
44 lines (28 loc) • 1.96 kB
Markdown
## Introduction
Almost every application nowadays, requires a database to persist data. We have integrated [`ObjectionJS`](https://vincit.github.io/objection.js/) as our supported ORM.
`ObjectionJS` provides very clean and fluent APIs to build and run complex queries at ease. We have worked in the past with many ORMs, but `ObjectionJS` stood out, it is relatively young but more mature in terms of its offerings.
**Why we ❤️ ObjectionJS**:
- ✅ Very clean and mature Query Builder
- ✅ Fluent Relational Queries
- ✅ Official Typescript Support
- ✅ Clean Migrations and Seeders using [`KnexJS`](http://knexjs.org/)
- ✅ Support for Hooks
- ✅ Powerful model entity relation operations
- ✅ Easy to use Transactions
**What we have added on top of it?**:
- ✅ Setting up project is now much easier than ever
- ✅ Custom `BaseModel` having performant functions
- ✅ In-built `DatabaseRepository` to help you maintain data store functions smartly
- ✅ Beautiful console commands to manage migrations
- ✅ Custom `QueryBuilder` with some much needed methods
- ✅ Utilise multiple connections in repositories smartly.
- ✅ Clean Transaction API using Repositories
## Documentation
To read the complete documentation, [click here](https://squareboat.com/open-source/nestjs-boilerplate/database/introduction/).
## Contributing
To know about contributing to this package, read the guidelines [here](./CONTRIBUTING.md)
## About Us
We are a bunch of dreamers, designers, and futurists. We are high on collaboration, low on ego, and take our happy hours seriously. We'd love to hear more about your product. Let's talk and turn your great ideas into something even greater! We have something in store for everyone. [☎️ 📧 Connect with us!](https://squareboat.com/contact)
## License
The MIT License. Please see License File for more information. Copyright © 2020 SquareBoat.
Made with ❤️ by [Squareboat](https://squareboat.com)