Hacker GitHub

← All repos

darioteixeira/pgocaml

View on GitHub ↗ ★ 178 OCaml

PG'OCaml provides an interface to PostgreSQL databases for OCaml applications. It uses Camlp4 to extend the OCaml syntax, enabling one to directly embed SQL statements inside the OCaml code.

3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2016-05-03 · latest 2025-04-21

Mentions per year 3 mentions · busiest year 2016 (1)
20082026
  1. I did a safe OCaml implementation of this about 20 years ago, the latest version being here: https://github.com/darioteixeira/pgocaml Note that the variables are safely and correctly interpolated at compile time. And it's type checked…
    comment by rwmj · 2025-04-21 · in Python’s new t-strings
  2. …the validation and get the types. It really made writing database-baked websites less of a grind. https://github.com/darioteixeira/pgocaml
  3. …although now maintained by a group of authors: http://pgocaml.forge.ocamlcore.org/ (git source: https://github.com/darioteixeira/pgocaml ) It's only possible because OCaml has real macros. It wouldn't be easy to do this in C/C++ (I guess?…
    comment by rwmj · 2016-05-03 · in Weep for Graphics Programming