Re:Ask HN: What is the killer app/library of your favorite l...
by rwmj on Sunday February 20, 2022 @02:46PM
(#30408666)
On the subject of PostgreSQL and although I haven't had to use it in several years, I'm quite fond of the OCaml extension I wrote which integrates PostgreSQL statements directly into the language.
Values are type-checked across the boundary, SQL commands are validated at compile time, and proper prepared statements get generated (also at compile time).
It's a little bit like MS Linq in concept, but it works quite differently - by using PGSQL "DESCRIBE" to send the statement to the PostgreSQL server when compiling the code to do the validation and get the types. It really made writing database-baked websites less of a grind. https://github.com/darioteixeira/pgocaml
Values are type-checked across the boundary, SQL commands are validated at compile time, and proper prepared statements get generated (also at compile time).
It's a little bit like MS Linq in concept, but it works quite differently - by using PGSQL "DESCRIBE" to send the statement to the PostgreSQL server when compiling the code to do the validation and get the types. It really made writing database-baked websites less of a grind. https://github.com/darioteixeira/pgocaml