SQLite3-OCaml - SQLite3 Bindings for OCaml

What is SQLite3-OCaml?

SQLite3-OCaml is an OCaml library with bindings to the SQLite3 client API. Sqlite3 is a self-contained, serverless, zero-configuration, transactional SQL database engine with outstanding performance for many use cases.

These bindings are written in a way that enables a friendly coexistence with the old (version 2) SQLite and its OCaml wrapper ocaml-sqlite.


The API in file lib/sqlite3.mli is fully documented, and HTML-documentation can be built using make doc and installed with this distribution. It can also be found online.

SQLite3 has its own online documentation.


The test-directory in this distribution contains a few simple examples for testing various features of this library.


  • Enrico Tassi contributed support for user-defined scalar functions.

  • Markus Mottl rewrote Christian's bindings for Jane Street Holding, LLC to clean up a few things and to make it perform better in multi-threaded environments.

  • Christian Szegedy wrote the initial release for SQLite version 3.

  • Mikhail Fedotov wrote ocaml-sqlite for SQLite version 2. His bindings served as a reference for this wrapper, but sqlite3 is written completely from scratch since the C interface changed significantly.

Contact Information and Contributing

In the case of bugs, feature requests, contributions and similar, please contact the maintainers:

Up-to-date information should be available at:


Markus Mottl in Rutherford, NJ on July 10, 2012