package caqti-async

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Connector for Async.

include Caqti_connect_sig.S with type 'a future := 'a Async_kernel.Deferred.t
module Pool : sig ... end
module Stream : sig ... end
module type CONNECTION = sig ... end
type connection = (module CONNECTION)
val connect : ?env:(Caqti_driver_info.t -> string -> Caqti_query.t) -> ?tweaks_version:(int * int) -> Uri.t -> (connection, [> Caqti_error.load_or_connect ]) Stdlib.result Async_kernel.Deferred.t
val with_connection : ?env:(Caqti_driver_info.t -> string -> Caqti_query.t) -> ?tweaks_version:(int * int) -> Uri.t -> (connection -> ('a, [> Caqti_error.load_or_connect ] as 'b) Stdlib.result Async_kernel.Deferred.t) -> ('a, 'b) Stdlib.result Async_kernel.Deferred.t
val connect_pool : ?max_size:int -> ?max_idle_size:int -> ?post_connect: (connection -> (unit, [> Caqti_error.connect ] as 'a) Stdlib.result Async_kernel.Deferred.t) -> ?env:(Caqti_driver_info.t -> string -> Caqti_query.t) -> ?tweaks_version:(int * int) -> Uri.t -> ((connection, 'a) Pool.t, [> Caqti_error.load ]) Stdlib.result
OCaml

Innovation. Community. Security.