X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmathql_interpreter%2FmQIConn.mli;h=649b548547fd073bfe984c7fd9dd3926d554d588;hb=d3c72d6856cd185e5b3e9f2e8b928b78c7031ed1;hp=26cb291f9aae70ea3fe62a2e3623c3f1b6fa9082;hpb=39b9497090ee5cc501de1e3d9044d71fdc5cf1fb;p=helm.git diff --git a/helm/ocaml/mathql_interpreter/mQIConn.mli b/helm/ocaml/mathql_interpreter/mQIConn.mli index 26cb291f9..649b54854 100644 --- a/helm/ocaml/mathql_interpreter/mQIConn.mli +++ b/helm/ocaml/mathql_interpreter/mQIConn.mli @@ -23,13 +23,14 @@ * http://cs.unibo.it/helm/. *) -type flag = Postgres | Galax | Stat | Quiet | Warn +(* AUTOR: Ferruccio Guidi + *) + +type flag = Postgres | Galax | Stat | Quiet | Warn | Log val string_of_flags : flag list -> string val flags_of_string : string -> flag list -exception InvalidConnection - type handle val init : flag list -> (string -> unit) -> handle @@ -42,6 +43,10 @@ val init_if_connected : flag list -> (string -> unit) -> handle * For exclusive use of the interpreter. *) -val log : handle -> string -> unit -val set : handle -> flag -> bool -val pgc : handle -> Postgres.connection +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