Module Ocsi_sql

module Ocsi_sql : sig..end

Database interface to the Ocsimore database.

module Lwt_PGOCaml : 
with type 'a monad = 'a Lwt.t
module Lwt_Query : 
with type 'a Db.t = 'a Lwt_PGOCaml.t and type 'a Db.monad = 'a Lwt.t
type db_t = Lwt_PGOCaml.pa_pg_data Lwt_PGOCaml.t
val pool : db_t Lwt_pool.t
val transaction_block : db_t -> (unit -> 'a Lwt.t) -> 'a Lwt.t

Perform an atomic transaction (using BEGIN and COMMIT/ROLLBACK

val full_transaction_block : (db_t -> 'a Lwt.t) -> 'a Lwt.t

Same as transaction_block but takes a db connection in the pool.

val view : ('a, 'b)