ts-sql-query
kysely-postgres-js
ts-sql-query | kysely-postgres-js | |
---|---|---|
2 | 1 | |
262 | 50 | |
- | - | |
9.0 | 7.8 | |
29 days ago | 1 day ago | |
TypeScript | TypeScript | |
MIT License | 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.
ts-sql-query
-
Show HN: Kysely, a type-safe SQL query builder for TypeScript
We moved away from zapatos because the generated types are good only when selecting from single table. The moment we start selecting some subset of columns from a join of multiple tables, it is upto the developer to provide the right combination of pick and intersection of generated types and type safety takes a hit.
The solution we use right now is ts-sql-query which supports automatic type-safety for complex joins, CTEs, subselects etc.
https://ts-sql-query.readthedocs.io/
- Well, shit. Objection.js has been sunset, which ORM/querybuilder did you move to?
kysely-postgres-js
-
Show HN: Kysely, a type-safe SQL query builder for TypeScript
postgres.js is dope! I'm maintaining a Kysely community dialect for it. https://github.com/igalklebanov/kysely-postgres-js
What are some alternatives?
kysely - A type-safe typescript SQL query builder
tusken - 100% type-safe query builder compatible with any Postgres client 🐘 Generated table/function types, tree-shakable, implicit type casts, and more
prisma-kysely - 🪄 Generate Kysely types directly from your Prisma schema!
squashql - Official repository of SquashQL, the SQL query engine for multi-dimensional and hierarchical analysis that empowers your SQL database
awesome-kysely - A curated list of Kysely resources, tools, utilities and applications.
drizzle-orm - Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
kysely-codegen - Generate Kysely type definitions from your database.
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.