typed-knex
nestjs-objection
Our great sponsors
typed-knex | nestjs-objection | |
---|---|---|
1 | 2 | |
113 | 135 | |
- | - | |
0.0 | 9.6 | |
about 1 year ago | 4 days ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
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.
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.
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?
What are some alternatives?
trpc - 🧙♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
objection-authorize - isomorphic, "magical" authorization integration with Objection.js 🎉
denodb - MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
nest-repository-pattern
slonik - A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.
knex-types - Generate TypeScript definitions (types) from a PostgreSQL database schema.
node-sql-template-strings - ES6 tagged template strings for prepared SQL statements 📋
knex-relay-cursor-pagination - Easy Relay cursor-pagination for Knex queries
postgres - Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
MySQL - A pure node.js JavaScript Client implementing the MySQL protocol.
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.