Sqlite bindings for OCaml

I searched for SQLite bindings for OCaml. I came across ocaml-sqlite3 , which looks good and relevant, but there is no documentation on how to use it.

There is some very old documentation (API reference only), the obsolete ocaml-sqlite binding , which was discontinued in 2004. But it really doesn’t look relevant and is probably already very different from the updated version that I found (listed in the link above).

I'm just wondering if anyone has any documentation, examples, or a key to understanding how these libraries work. I could go through the code, but I would like to keep this parameter as the last resource.

+4
source share
2 answers

Howdy. The ocaml-sqlite3 library that you talked about really has documentation; you just need to build it with make doc . It is also included in comments in the .mli file; you can look here: http://hg.ocaml.info/release/ocaml-sqlite3/file/b28bff3ff215/sqlite3.mli . I understand that this is just a reference to the API, but it looks pretty comprehensive.

+6
source

In addition to phooji's answer, note that the API is closely monitoring the C sqlite library. Therefore, any Sqlite book should help you use OCaml binding. And you correctly know which version to use; here: http://www.ocaml.info/home/ocaml_sources.html .

+5
source

Source: https://habr.com/ru/post/1343056/


All Articles