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
20082026
-
…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…
comment by timmy-turner · 2020-09-03 · in Show HN: ORM for TypeScript with no query-builder, supporting full SQL queries -
…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…
comment by timmy-turner · 2020-05-25 · in Show HN: PgTyped – Typesafe SQL in TypeScript and Postgres -
…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 -
…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