type handle = {
log : string -> unit; (* logging function *)
set : flag list; (* options *)
- pgc : Postgres.connection option; (* PG connection *)
+ pgc : MQIDataBase.connection option; (* PG connection *)
pgm : MQIMap.pg_map; (* PG conversion function *)
pga : MQIMap.pg_alias (* PG table aliases *)
}
if List.mem Galax flags then
None
else
- MQIPostgres.init
+ MQIDataBase.init
(Helm_registry.get "mathql_interpreter.postgresql_connection_string");
pgm = m; pga = a
}
let close handle =
- if set handle Galax then () else MQIPostgres.close handle.pgc
+ if set handle Galax then () else MQIDataBase.close handle.pgc
let connected handle =
if set handle Galax then false else (pgc handle) <> None