let profiler = HExtlib.profile "mysql"
-let use_real_db () =
- not (Helm_registry.get_opt_default Helm_registry.bool
- ~default:false "db.nodb")
-
let quick_connect ?host ?database ?port ?password ?user () =
profiler.HExtlib.profile
- (fun () ->
- if use_real_db () then
- (Some (Mysql.quick_connect ?host ?database ?port ?password ?user ()))
- else
- None)
+ (fun () ->
+ Some (Mysql.quick_connect ?host ?database ?port ?password ?user ()))
()
+;;
let disconnect = function
| None -> ()
let escape s =
profiler.HExtlib.profile Mysql.escape s
-let exec dbd s =
+let exec s dbd =
match dbd with
| None -> None
| Some dbd ->