Hashtbl.add cache_of_processed_baseuri buri true;
let query =
let buri = buri ^ "/" in
- let buri = Mysql.escape buri in
+ let buri = HMysql.escape buri in
let obj_tbl = MetadataTypes.obj_tbl () in
Printf.sprintf
"SELECT source, h_occurrence FROM %s WHERE h_occurrence LIKE '%s%%'" obj_tbl buri
in
try
- let rc = Mysql.exec (MatitaDb.instance ()) query in
+ let rc = HMysql.exec (MatitaDb.instance ()) query in
let l = ref [] in
- Mysql.iter rc (
+ HMysql.iter rc (
fun row ->
match row.(0), row.(1) with
| Some uri, Some occ when Filename.dirname occ = buri ->
cleaned_no := 0;
List.iter
(function table ->
- ignore (Mysql.exec (MatitaDb.instance ()) ("OPTIMIZE TABLE " ^ table)))
+ ignore (HMysql.exec (MatitaDb.instance ()) ("OPTIMIZE TABLE " ^ table)))
[MetadataTypes.name_tbl (); MetadataTypes.rel_tbl ();
MetadataTypes.sort_tbl (); MetadataTypes.obj_tbl();
MetadataTypes.count_tbl()]