]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaMisc.ml
snapshot, notably:
[helm.git] / helm / matita / matitaMisc.ml
index c3b83fd472f31453181f1598fd786f88d24ff442..dd84abcbd00de0e7ffc32b60907f409a1158a029 100644 (file)
@@ -130,3 +130,13 @@ class ['a] browser_history ?memento size init =
     method save = (Array.copy data, hd, tl, cur)
   end
 
+let dbd_instance =
+  let dbd = lazy (
+    Mysql.quick_connect
+      ~host:(Helm_registry.get "db.host")
+      ~user:(Helm_registry.get "db.user")
+      ~database:(Helm_registry.get "db.database")
+      ())
+  in
+  fun () -> Lazy.force dbd
+