i think there are more than one available SQLite bindings for OCaml,
including some that are just for versions of SQLite before the API
was changed in version 3 and others engineered directly for SQLite3.
I am using Bárður Árantsson's bindings that are available at:
http://www.imada.sdu.dk/~bardur/personal/45-programs/
These particular OCaml bindings in many ways directly mirror the
SQLite3 C API; they are not a DBI-like interfaces, but work well if
you are familiar with SQLite3.
I have modified the bindings slightly for my own needs by adding a
few methods and fixing a few bugs (any fixes of which I plan to
eventually contribute back to Bárður), but it works very well with
the latest version of SQLite3. I am using it just fine with version
3.3.6 of SQLite. I have successfully used it to create database
files of several gigabytes (populated with marshaled OCaml objects
using Sqlite3's blob type).
Ted
On Jul 14, 2006, at 4:46 PM, Mike Lin wrote:
> Hi, does anyone know how (if) the available ocaml sqlite bindings
> work with recent versions of sqlite (namely 3.x.x)?
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
> Hi, does anyone know how (if) the available ocaml sqlite bindings work with
> recent versions of sqlite (namely 3.x.x)?
http://metamatix.org/~ocaml/ocaml_sqlite3.html
I've used this and it works fine, although there is a minor bug that
causes seg faults in certain situations that I can't currently
recall. I have a patch that I will send next week from work.
Toby.
> Mike Lin writes:
>
>> Hi, does anyone know how (if) the available ocaml sqlite bindings work with
>> recent versions of sqlite (namely 3.x.x)?
>
> http://metamatix.org/~ocaml/ocaml_sqlite3.html
>
> I've used this and it works fine, although there is a minor bug that
> causes seg faults in certain situations that I can't currently
> recall. I have a patch that I will send next week from work.
Here's the patch that I've been using to great effect.
Toby.