package sihl-persistence

  1. Overview
  2. Docs
module Core = Sihl_core
exception Exception of string
val log_src : Logs.src
module Logs : Logs.LOG
val pool_ref : (Caqti_lwt.connection, Caqti_error.t) Caqti_lwt.Pool.t option Stdlib.ref
type config = {
  1. url : string;
  2. pool_size : int option;
}
val config : string -> int option -> config
val schema : (string, string -> int option -> config, config) Conformist.t
val raise_error : ('a, [< Caqti_error.t ]) Stdlib.result -> 'b
val print_pool_usage : ('a, 'b) Caqti_lwt.Pool.t -> unit
val transaction : (Caqti_lwt.connection -> 'a Lwt.t) -> 'b Lwt.t
val query : (Caqti_lwt.connection -> 'a Lwt.t) -> 'b Lwt.t
val start : unit -> unit Lwt.t
val stop : 'a -> unit Lwt.t
val register : unit -> Core.Container.Service.t
OCaml

Innovation. Community. Security.