123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869typedatabase_type=|MariaDb|PostgreSql(* Signature *)letname="database"exceptionExceptionofstringmoduletypeSig=sigvalprepare_requests:string->string->string->'aCaqti_type.t->(int,'a,[`Many|`One|`Zero])Caqti_request.t*(int,'a,[`Many|`One|`Zero])Caqti_request.t*(string*int,'a,[`Many|`One|`Zero])Caqti_request.t*(string*int,'a,[`Many|`One|`Zero])Caqti_request.tvalrun_request:(moduleCaqti_lwt.CONNECTION)->('a,'b,[<`Many|`One|`Zero])Caqti_request.t*('a,'b,[<`Many|`One|`Zero])Caqti_request.t*('c*'a,'b,[<`Many|`One|`Zero])Caqti_request.t*('c*'a,'b,[<`Many|`One|`Zero])Caqti_request.t->[<`Asc|`Desc]->'coption->'a->'blistLwt.t(** [raise_error err] raises a printable caqti error [err] .*)valraise_error:('a,Caqti_error.t)Result.t->'a(** [fetch_pool ()] returns the connection pool that was set up. If there was
no connection pool set up, setting it up now. *)valfetch_pool:unit->(Caqti_lwt.connection,Caqti_error.t)Caqti_lwt.Pool.t(** [query f] runs the query [f] on the connection pool and returns the
result. If the query fails the Lwt.t fails as well. *)valquery:(Caqti_lwt.connection->'aLwt.t)->'aLwt.t(** [query' f] runs the query [f] on the connection pool and returns the
result. Use [query'] instead of {!query} as a shorthand when you have a
single caqti request to execute. *)valquery':(Caqti_lwt.connection->('a,Caqti_error.t)Result.tLwt.t)->'aLwt.t(** [transaction f] runs the query [f] on the connection pool in a transaction
and returns the result. If the query fails the Lwt.t fails as well and the
transaction gets rolled back. If the database driver doesn't support
transactions, [transaction] gracefully becomes {!query}. *)valtransaction:(Caqti_lwt.connection->'aLwt.t)->'aLwt.t(** [transaction' f] runs the query [f] on the connection pool in a
transaction and returns the result. If the query fails the Lwt.t fails as
well and the transaction gets rolled back. If the database driver doesn't
support transactions, [transaction'] gracefully becomes {!query'}. *)valtransaction':(Caqti_lwt.connection->('a,Caqti_error.t)Result.tLwt.t)->'aLwt.tvalregister:unit->Core_container.Service.tincludeCore_container.Service.Sigend