X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmathql_interpreter%2FmQIConn.mli;h=b83453ae9683ba8a183233019ff032a88c1d8b79;hb=6c9b7696b51aa36a7c592ff76b922259ccf9570e;hp=7eff1b4b45fef8a558cd6e8e941d73a6d1f8af53;hpb=91db309a46f8b6f100a36abbc568deec10a8d1df;p=helm.git diff --git a/helm/ocaml/mathql_interpreter/mQIConn.mli b/helm/ocaml/mathql_interpreter/mQIConn.mli index 7eff1b4b4..b83453ae9 100644 --- a/helm/ocaml/mathql_interpreter/mQIConn.mli +++ b/helm/ocaml/mathql_interpreter/mQIConn.mli @@ -23,24 +23,30 @@ * http://cs.unibo.it/helm/. *) -type flag = Postgres | Galax | Stat | Quiet | Warn | Log +(* AUTOR: Ferruccio Guidi + *) + +type flag = Galax | Postgres | Queries | Result | Source | Times | Warn val string_of_flags : flag list -> string val flags_of_string : string -> flag list type handle -val init : flag list -> (string -> unit) -> handle +val init : ?flags:(flag list) -> ?log:(string -> unit) -> unit -> handle val close : handle -> unit val connected : handle -> bool -val init_if_connected : flag list -> (string -> unit) -> handle +val init_if_connected : ?flags:(flag list) -> ?log:(string -> unit) -> unit -> handle (* The following functions allow to read the handle internal fields. * For exclusive use of the interpreter. *) -val log : handle -> string -> unit -val set : handle -> flag -> bool -val pgc : handle -> Postgres.connection option -val flags : handle -> flag list +val log : handle -> string -> unit +val set : handle -> flag -> bool +val pgc : handle -> Postgres.connection option +val flags : handle -> flag list +val tables : handle -> MathQL.path -> MQIMap.pg_tables +val field : handle -> MathQL.path -> string -> string +val resolve : handle -> string -> string