OCaml bindings to the SQLite 3 database access library.
This package was rewritten by Marcus Mottl.
You are redirected (in 10 second) to his page for the latest updates. Please click this link if your browser does not redirect you automatically
This installation of this package requires installed OCaml 3 system with working findlib, the SQLite 3 libraries and a C compiler.
open Sqlite3 let _ = let db = db_open "test.db" ( try exec_sql (fun s -> match column s 1 with | Data_float f -> Printf.printf "Found %f\n" f | _ -> failwith "Float expected" ) db "SELECT * FROM mytable" with xcp -> print_endline (Printexc.to_string xcp) ); db_close db;