5 module G
= Test_caml_gen.Sqlgg
(Sqlgg_sqlite3
)
7 let explain msg db
= printf
"%s : %s\n" msg
(errmsg db
)
10 let db = db_open
":memory:" in
25 G.add
db "c++" "ugly";
31 G.add
db "ocaml" "wonderful";
34 G.exaggerate
db "really";
37 G.select_all
db (fun id name descr
-> printf
"%Lu) %s is %s\n" id name descr
);
41 explain "create_loc" db;
43 G.create_zuzu
db "qq";
44 explain "create_zuzu" db;
46 let ok = db_close
db in
47 printf
"close: %B\n" ok;
52 Printexc.print
main ()