Re:Sqlc: Compile SQL to type-safe code
by user432678 on Tuesday September 10, 2024 @03:33AM
(#41498164)
Didn’t use myself, but AFAIK slonik library is doing what you’ve described: https://github.com/gajus/slonik
[ Parent
| on HN ]
Re:Sqlc: Compile SQL to type-safe code
by mewpmewp2 on Tuesday September 10, 2024 @04:48AM
(#41498658)
It doesn't seem to be doing what I meant. I mean typing compile time and most importantly while using the IDE. Without having to generate types manually or importing them from a generated file.
Re:Sqlc: Compile SQL to type-safe code
by user432678 on Tuesday September 10, 2024 @12:34PM
(#41502665)
I have probably misunderstood the documentation, the built-in sql tagged template function seems to be providing static type safety using conditional types magic. But, yeah, maybe I am too optimistic about this. Well, too bad then.