PG'OCaml is a camlp4 syntax which lets you embed Postgres SQL
statements directly into OCaml code. It is almost completely
type-safe (at least, as type-safe as PostgreSQL itself allows).
We have just released version 0.6, which has a number of enhancements,
including the ability to access multiple databases / servers when
compiling a single file, using syntax like:
let rows =
PGSQL(dbh) "database=foo" "select something from table_in_foo"
The library is released under LGPL with the OCaml linking exception,
meaning there should be no barrier to using it in commercial code.
Despite the apparently "young" version number, we use this library
extensively in production code.
Some of our other OCaml libraries: http://merjis.com/developers
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
Caml-list mailing list. Subscription management:
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs