X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmetadata%2FmetadataDb.mli;h=86820aafbc4abaf266b1ce07e938720cc49d9f87;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=79bc82240f329ec2a092610c00fb0ff5aca19a27;hpb=08b2e9f42c841f03dade37e3c16d78e1bfdc946f;p=helm.git diff --git a/helm/ocaml/metadata/metadataDb.mli b/helm/ocaml/metadata/metadataDb.mli index 79bc82240..86820aafb 100644 --- a/helm/ocaml/metadata/metadataDb.mli +++ b/helm/ocaml/metadata/metadataDb.mli @@ -23,25 +23,19 @@ * http://helm.cs.unibo.it/ *) - (** index a Cic.Constant object and insert resulting metadata into the db - * PRE_EVAL(dbd) *) -val index_constant: - dbd:Mysql.dbd -> - owner:string -> - uri:UriManager.uri -> body:Cic.term option -> ty:Cic.term -> - unit - (** index a Cic.InductiveDefinition object and insert resulting metadata into - * the db - * PRE_EVAL(dbd) *) -val index_inductive_def: - dbd:Mysql.dbd -> - owner:string -> - uri:UriManager.uri -> types:Cic.inductiveType list -> - unit +val index_obj: dbd:HMysql.dbd -> uri:UriManager.uri -> unit + (* TODO Zack indexing of variables and (perhaps?) incomplete proofs *) - (** remove from the db all metadata pertaining to a given owner *) -val clean: dbd:Mysql.dbd -> unit + (** remove from the db all metadata pertaining to a given owner + * @return list of uris removed from the db *) +val clean: dbd:HMysql.dbd -> string list +val unindex: dbd:HMysql.dbd -> uri:UriManager.uri -> unit + +val count_distinct: + [`Conclusion | `Hypothesis | `Statement ] -> + MetadataTypes.metadata list -> + int