ivank/potygen
View on GitHub ↗ ★ 107 TypeScript
Postgres SQL Parser and type generator
7 mentions on Hacker News by 1 person: 0 stories, 7 comments · first 2022-06-08 · latest 2024-09-10
20082026
-
…applications. I am yet to see libs that embrace the elegance of it all - I’ve attempted this once - https://github.com/ivank/potygen but didn’t get much traction. I’m now just waiting for someone more determined to pick up those ideas - a…
comment by seer · 2024-09-10 · in Sqlc: Compile SQL to type-safe code -
I also wrote a parser (in typescript) for postgres ( https://github.com/ivank/potygen ), and it turned out quite the educational experience - Learned _a lot_ about the intricacies of SQL, and how to build parsers in general. Turned out in…
comment by seer · 2024-02-29 · in Pql, a pipelined query language that compiles to SQL -
…so went all the way in the other direction - raw sql everywhere, with some great sql analyzer lib ( https://github.com/ivank/potygen ) that would strictly type and format with prettier all the queries - kinda plugged all the possible…
comment by seer · 2023-06-28 · in Is ORM still an anti-pattern? -
you can try https://github.com/ivank/potygen - type gen from sql itself supports all kinds of complex stuff like views, ctes json objects etc.
comment by seer · 2023-01-24 · in Kysely: TypeScript SQL Query Builder -
…“lets just have raw sql queries” but extract distinct and specific types from them automatically- https://github.com/ivank/potygen Great thing is that it handles sql of any complexity - CTEs, views, nested selects/joins/unions/custom…
comment by seer · 2023-01-16 · in Objection to ORM Hatred (2019) -
Hah a few months back I released https://github.com/ivank/potygen Similar idea - statically typing queries. Mine was mostly me playing around with recursive decent parsers seeing if I can actually parse SQL with it, and it seems to work…
comment by seer · 2022-06-08 · in Deepkit – High-Performance TypeScript Framework