package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val lifecycle : Sihl__.Core_container.Lifecycle.t
val create_pool : unit -> ((Caqti_lwt.connection, Caqti_error.t) Caqti_lwt.Pool.t, string) result
val ctx_with_pool : unit -> Sihl__.Core_ctx.t
val add_pool : Sihl__.Core_ctx.t -> Sihl__.Core_ctx.t
val query_connection : (module Caqti_lwt.CONNECTION) -> ((module Caqti_lwt.CONNECTION) -> ('a, Caqti_error.t) Lwt_result.t) -> ('a, string) Lwt_result.t
val query : Sihl__.Core_ctx.t -> (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, 'e) Lwt_result.t) -> (('a, 'e) Result.t, string) Lwt_result.t
val single_connection : Sihl__.Core_ctx.t -> (Sihl__.Core_ctx.t -> ('a, 'e) Lwt_result.t) -> (('a, 'e) Result.t, string) Lwt_result.t
val set_fk_check : (module Caqti_lwt.CONNECTION) -> check:bool -> (unit, string) Result.t Lwt.t
OCaml

Innovation. Community. Security.