package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val create_pool : unit -> ((Caqti_lwt.connection, Caqti_error.t) Caqti_lwt.Pool.t, string) Base.result
val ctx_with_pool : unit -> Sihl__.Core_ctx.t
val add_pool : Sihl__.Core_ctx.t -> Sihl__.Core_ctx.t
val query_connection : 'a -> ('a -> ('b, [< Caqti_error.t ]) Lwt_result.t) -> ('b, string) Lwt_result.t
val query : Sihl__.Core_ctx.t -> ((module Caqti_lwt.CONNECTION) -> ('a, string) Lwt_result.t) -> ('a, string) Lwt_result.t
val atomic : Sihl__.Core_ctx.t -> ?no_rollback:bool -> (Sihl__.Core_ctx.t -> ('a, 'b) Base.result Lwt.t) -> (('a, 'b) Base.result, string) Base.Result.t Lwt.t
val single_connection : Sihl__.Core_ctx.t -> (Sihl__.Core_ctx.t -> 'a Lwt.t) -> ('a, string) Base.Result.t Lwt.t
val set_fk_check_request : (bool, unit, [< `Many | `One | `Zero Zero ]) Caqti_request.t
val set_fk_check : (module Caqti_lwt.CONNECTION) -> check:bool -> (unit, string) Lwt_result.t
OCaml

Innovation. Community. Security.