The problem is that doing queries over relational databases in a type-safe way requires either 1) some form of structural typing (for projections), or 2) ignoring projections altogether, which brings a slew of perf problems to the table.
Ironically, this means that OCaml is probably the best [reasonably popular] language to use an ORM in.
Ironically, this means that OCaml is probably the best [reasonably popular] language to use an ORM in.