X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmathql_interpreter%2FmQIConn.mli;fp=helm%2Focaml%2Fmathql_interpreter%2FmQIConn.mli;h=94ea83f76148895ad7db7e6f90dee400e58b9bb3;hb=916a0fe8729686889ee4b1d21026904f1c2e4b84;hp=f13448834114c91a0b0d798230a436064dc814c0;hpb=90a88a05bb66c0e14a95d54929a4b545c8f2a36c;p=helm.git diff --git a/helm/ocaml/mathql_interpreter/mQIConn.mli b/helm/ocaml/mathql_interpreter/mQIConn.mli index f13448834..94ea83f76 100644 --- a/helm/ocaml/mathql_interpreter/mQIConn.mli +++ b/helm/ocaml/mathql_interpreter/mQIConn.mli @@ -26,13 +26,23 @@ (* AUTOR: Ferruccio Guidi *) +type connection = MySQL_C of Mysql.dbd + | Postgres_C of Postgres.connection + | No_C + type flag = Galax | Postgres | Queries | Result | Source | Times | Warn +type handle = { + log : string -> unit; (* logging function *) + set : flag list; (* options *) + pgc : connection; (* PG connection *) + pgm : MQIMap.pg_map; (* PG conversion function *) + pga : MQIMap.pg_alias (* PG table aliases *) +} + val string_of_flags : flag list -> string val flags_of_string : string -> flag list -type handle - val init : ?flags:(flag list) -> ?log:(string -> unit) -> unit -> handle val close : handle -> unit val connected : handle -> bool