News for hackers. Stuff that matters.
Re:Show HN: PgTyped – Typesafe SQL in TypeScript and Postgres by mceachen on Monday May 25, 2020 @03:19PM (#23303987)
I wrote the original typescript bindings for objection. One of the library authors is a contributor to knex.js, which objection uses for query building. Both are quite nice.

With either library, you aren't writing naked SQL, but something like `query.where("updated_at", ">", Date.now())`. Tsc comes into play when you send typed objects into your .where, .insert, ... methods and what you get back from the query.

It's close enough to SQL that you don't lose expressiveness, you're not behind walls of magick due to orm, and you don't have to worry about Bobby Droptables.

There are no comments on this comment yet.