2 ms·
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 st
by rwmj 5y ago
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 https://github.com/darioteixeira/pgocaml