3 ms·
Has anyone used this and compared to the types provided by Knex? I’m largely very happy with Knex but when you start dealing with subqueries and the like the ty
by afavour 3y ago
Has anyone used this and compared to the types provided by Knex? I’m largely very happy with Knex but when you start dealing with subqueries and the like the types fall apart. Suspect this kind of thing is pushing TS types to their limit, though.
- nadanke 3y agoYou should try it. I switched from Knex to Kysely since I was early in a project and Knex lost its lead developer (IIRC) and the typing Kysely gives you is extremely effortless and works very well.
- igalklebanov 3y agoWe love Knex, and are inspired by it. Sadly its not type-safe and reaching type-safety would require a rewrite. We care a lot about our TypeScript compilation performance and Developer eXperience in general. v0.25 introduced internal changes that doubled the possible complexity of CTEs, joins and conditional selects. We also provide helper methods that "reset" the stack in a type-safe way.