X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmetadata%2FmetadataDb.mli;h=86820aafbc4abaf266b1ce07e938720cc49d9f87;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=074ff721443aaf8e45eb31555608d7c512351123;hpb=21758b512843088d19e81830d9fb121725c8a16e;p=helm.git diff --git a/helm/ocaml/metadata/metadataDb.mli b/helm/ocaml/metadata/metadataDb.mli index 074ff7214..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(dbh) *) -val index_constant: - dbh:Dbi.connection -> - 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(dbh) *) -val index_inductive_def: - dbh:Dbi.connection -> - 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: dbh:Dbi.connection -> owner:string -> 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