package guardian

  1. Overview
  2. Docs

Parameters

module Config : ConfigSig

Signature

include Sig
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
val transaction : ?ctx:(string * string) list -> (Caqti_lwt.connection -> 'a) -> 'a Lwt.t
val transaction' : ?ctx:(string * string) list -> (Caqti_lwt.connection -> ('a, [< Caqti_error.t ]) result) -> 'a Lwt.t
val query : ?ctx:(string * string) list -> (Caqti_lwt.connection -> 'a Lwt.t) -> 'a Lwt.t
val query' : ?ctx:(string * string) list -> (Caqti_lwt.connection -> ('a, [< Caqti_error.t ]) result Lwt.t) -> 'a Lwt.t
OCaml

Innovation. Community. Security.