▲ | ryanrasti 3 days ago | ||||||||||||||||
I'm working on Typegres, a new data layer for the modern stack (TypeScript + PostgreSQL). My take is that for years, ORMs have hidden the power of PostgreSQL behind generic, database-agnostic abstractions. This made sense in 2010, but now it's a bottleneck. Typegres rejects this. It's a "translator, not an abstraction," designed to express the full power of PostgreSQL (all statements, built-in functions, etc.) in a type-safe TypeScript API. The latest killer feature my take of "object-relational mapping done right": class-based models with methods that are actually composable SQL expressions. This lets you extend your tables with expressive logic and fully-composable relations. It's easier to show than tell. Take a look: https://typegres.com/play | |||||||||||||||||
▲ | ramon156 3 days ago | parent | next [-] | ||||||||||||||||
Interesting! have u taken a look at safeql? https://safeql.dev/ I'm personally not a fan of query builders for SQL. it's already a defined language, why are we trying to move away from queries? On top of that SafeQL is only a dev dependency, there's no abstraction. it gets ran through any query client you want | |||||||||||||||||
| |||||||||||||||||
▲ | keyserj 2 days ago | parent | prev | next [-] | ||||||||||||||||
Neat idea. Would you say that biggest difference from something like Kysely is the focus on extracting common calculated SELECT targets into methods that can easily be accessed when querying? Or perhaps it's more thorough with providing TS versions of all the SQL syntax available? The list of reference fields/methods in your docs is certainly massive. | |||||||||||||||||
| |||||||||||||||||
▲ | qq99 3 days ago | parent | prev [-] | ||||||||||||||||
Very cool! | |||||||||||||||||
|