open Postgresql
(* ... *)
let results requete =
let c = new Postgresql.connection ~host:"localhost"
~user:"mihamina"
~dbname:"db_molanga" ()
in
let r = c#exec requete
in
c#finish;
r;;
I would like to close the connection (c#finish) after executing.
Is this an acceptable way to do things?