Closed cyberhuman closed 2 months ago
Currently works fine
module Make (T : Sqlgg_traits.M_io) = struct
module IO = T.IO
let insert_foo_0 db ~bar =
let set_params stmt =
let p = T.start_params stmt (1) in
begin match bar with None -> T.set_param_null p | Some v -> T.set_param_Int p v end;
T.finish_params p
in
T.execute db ("insert into foo ( bar ) values ( ? )") set_params
let insert_foo_1 db ~bar =
let set_params stmt =
let p = T.start_params stmt (1) in
begin match bar with None -> T.set_param_null p | Some v -> T.set_param_Int p v end;
T.finish_params p
in
T.execute db ("insert into foo ( bar ) select ?") set_params
module Fold = struct
end (* module Fold *)
module List = struct
end (* module List *)
end (* module Make *)