package guardian

  1. Overview
  2. Docs
val initialize : unit -> unit
val fetch_pool : ?ctx:(string * string) list -> unit -> (Caqti_lwt.connection, Caqti_error.t) Caqti_lwt.Pool.t
val add_pool : ?pool_size:int -> string -> string -> unit
val find : ?ctx:(string * string) list -> ('a, 'b, [< `One ]) Caqti_request.t -> 'a -> 'b Lwt.t
val find_opt : ?ctx:(string * string) list -> ('a, 'b, [< `One | `Zero ]) Caqti_request.t -> 'a -> 'b option Lwt.t
val collect : ?ctx:(string * string) list -> ('a, 'b, [< `Many | `One | `Zero ]) Caqti_request.t -> 'a -> 'b list Lwt.t
val exec : ?ctx:(string * string) list -> ('a, unit, [< `Zero ]) Caqti_request.t -> 'a -> unit Lwt.t
OCaml

Innovation. Community. Security.