Re:Don't use your ORM entities for everything – embrace the SQL
by internetter on Friday March 29, 2024 @12:43PM
(#39866124)
We use Kysely[0], which is a nice balance. The code you write in Kysely translates 1:1 into SQL, which means there's very little perf left on the table, but we get an interface that's automatically typed, type safe, and works well with our js language tools.
Re:Don't use your ORM entities for everything – embrace the SQL
by clarkdave on Friday March 29, 2024 @01:12PM
(#39866485)
Kysely is excellent! Another library that complements it is pgTyped[0]. It compiles .sql files into functions with strongly typed parameters and return values
[0]: https://kysely.dev/