package sihl-persistence

  1. Overview
  2. Docs

Module Sihl_persistence.DatabaseSource

Sourcemodule Core = Sihl_core
Sourceexception Exception of string
Sourceval log_src : Logs.src
Sourcemodule Logs : Logs.LOG
Sourceval pool_ref : Sihl_type.Database.pool option ref
Sourcetype config = {
  1. url : string;
  2. pool_size : int option;
}
Sourceval config : string -> int option -> config
Sourceval schema : (string, string -> int option -> config, config) Conformist.t
Sourceval raise_error : ('a, [< Caqti_error.t ]) result -> 'a
Sourceval print_pool_usage : ('a, 'b) Caqti_lwt.Pool.t -> unit
Sourceval fetch_pool : unit -> Sihl_type.Database.pool
Sourceval transaction : (Caqti_lwt.connection -> 'a Lwt.t) -> 'a Lwt.t
Sourceval query : (Caqti_lwt.connection -> 'a Lwt.t) -> 'a Lwt.t
Sourceval start : unit -> unit Lwt.t
Sourceval stop : 'a -> unit Lwt.t
Sourceval register : unit -> Core.Container.Service.t
OCaml

Innovation. Community. Security.