nestjs-objection
typed-knex
nestjs-objection | typed-knex | |
---|---|---|
2 | 1 | |
135 | 113 | |
- | - | |
9.6 | 0.0 | |
5 days ago | about 1 year ago | |
TypeScript | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nestjs-objection
-
Exploring the repository pattern with TypeScript and Node
Next, let’s set up the database for our newly created Nest application. I’ll be using PostgreSQL, but you can use any of the databases Knex supports. To interact with our database, we’ll be using Objection.js, which is an ORM for Node.js built on top Knex. For this tutorial, we’ll be using Nest Objection, a Nest module for Objection.
- Raw SQL or ORM?
typed-knex
-
DenoDB
This has been an issue for me as well. I created https://github.com/wwwouter/typed-knex to mitigate this. At first I had to do a lot of weird things, but with the evolution of TypeScript, it is getting more and more like 'normal' Knex.js. The end goal is to be nothing more than a very small wrapper, if any.
What are some alternatives?
objection-authorize - isomorphic, "magical" authorization integration with Objection.js 🎉
trpc - 🧙♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
nest-repository-pattern
denodb - MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
knex-types - Generate TypeScript definitions (types) from a PostgreSQL database schema.
slonik - A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.
knex-relay-cursor-pagination - Easy Relay cursor-pagination for Knex queries
node-sql-template-strings - ES6 tagged template strings for prepared SQL statements 📋
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
postgres - Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare
MikroORM - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.
MySQL - A pure node.js JavaScript Client implementing the MySQL protocol.