Hacker GitHub

← All repos

hoeck/typesafe-query-builder

View on GitHub ↗ ★ 28 TypeScript

Generate SQL queries leveraging type inference and Postgres Json functions

4 mentions on Hacker News by 1 person: 0 stories, 4 comments · first 2020-04-01 · latest 2020-09-03

Mentions per year 4 mentions · busiest year 2020 (4)
20082026
  1. …else, I didn't like existing ORM/builder approaches, so I built and use my own with type-inference: https://github.com/hoeck/typesafe-query-builder . Any feedback would be great because I have the gut feeling that this one has gone way too…
  2. …use `json_agg`, `json_build_object` and json columns within a typesafe query-building DSL is this: https://github.com/hoeck/typesafe-query-builder But its mostly for replacing simple ORM fetches, it wont do complex analytical queries. For…
  3. …it is simplifying a lot of the nested objects stuff one serves over REST APIs. So I designed my own https://github.com/hoeck/typesafe-query-builder - with special support for `json_agg` and `json_build_object`. Its working already in…
    comment by timmy-turner · 2020-04-01 · in Prisma 2.0 Beta: Type-safe Database Access
  4. …generator that uses mapped types a lot to infer result set types from queries and a schema file. https://github.com/hoeck/typesafe-query-builder Not sure if thats a good idea and if the Typescript inference even scales that well when using…
    comment by timmy-turner · 2020-04-01 · in Prisma 2.0 Beta: Type-safe Database Access