package guardian

  1. Overview
  2. Docs

Parameters

module Config : ConfigSig

Signature

val print_pool_usage : ('a, 'b) Caqti_lwt.Pool.t -> unit
val connect_or_failwith : ?pool_size:int -> ((Caqti_lwt.connection, [> Caqti_error.connect ]) Caqti_lwt.Pool.t -> 'a) -> string -> 'b
val add_pool : ?pool_size:int -> string -> string -> unit
val initialize : unit -> unit
val fetch_pool : ?ctx:(CCString.t * string) CCList.t -> unit -> (Caqti_lwt.connection, Caqti_error.t) Caqti_lwt.Pool.t
val transaction : ?ctx:(CCString.t * string) CCList.t -> (Caqti_lwt.connection -> 'a) -> 'b Lwt.t
val transaction' : ?ctx:(CCString.t * string) CCList.t -> (Caqti_lwt.connection -> ('a, [< Caqti_error.t ]) result) -> 'b Lwt.t
val query : ?ctx:(CCString.t * string) CCList.t -> (Caqti_lwt.connection -> 'a Lwt.t) -> 'b Lwt.t
val query' : ?ctx:(CCString.t * string) CCList.t -> (Caqti_lwt.connection -> ('a, [< Caqti_error.t ]) result Lwt.t) -> 'b Lwt.t
val find_opt : ?ctx:(CCString.t * string) CCList.t -> ('a, 'b, [< `One | `Zero ]) Caqti_request.t -> 'c -> 'b option Lwt.t
val find : ?ctx:(CCString.t * string) CCList.t -> ('a, 'b, [< `One ]) Caqti_request.t -> 'c -> 'd Lwt.t
val collect : ?ctx:(CCString.t * string) CCList.t -> ('a, 'b, [< `Many | `One | `Zero ]) Caqti_request.t -> 'c -> 'b list Lwt.t
val exec : ?ctx:(CCString.t * string) CCList.t -> ('a, unit, [< `Zero ]) Caqti_request.t -> 'b -> unit Lwt.t
OCaml

Innovation. Community. Security.