Re:Write an SQL query builder in 150 lines of Python
by x-shadowban on Friday August 27, 2021 @10:31AM
(#28328273)
F# (and surely there are others) offers type providers, which can reach into your db schemas at compile time and typecheck linq-ish or even raw sql strings and the subsequent uses of the result set. But in the simplest case it makes compilation a function of not only source files but also db schema state. You can extract schema defs and point the type provider at the "cached" defs, but make sure rebuilding those is part of the build process.
[ Parent
| on HN ]
There are no comments on this comment yet.