package caqti-async

  1. Overview
  2. Docs
Async support for Caqti

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-0.10.0.tbz
sha256=83c80e1b55e0311d9a97b1f591a3f504670c977e7e47f8ed827897ce8d4a05ad
md5=28a2a8f5235662e7a452b786ffdb4a7f

doc/caqti-async.v1/Caqti1_async/index.html

Module Caqti1_async

(v1) Connector for Async.

  • deprecated

    Don't use this in new code.

include Caqti1_sigs.CAQTI with type 'a io := 'a Async.Deferred.Or_error.t
module Pool : Caqti1_pool_sig.S with type 'a io := 'a Async.Deferred.Or_error.t

This is an instantiation of Caqti_pool for the chosen thread monad.

module type CONNECTION = Caqti1_sigs.CONNECTION with type 'a io = 'a Async.Deferred.Or_error.t
val connect : Uri.t -> (module CONNECTION) Async.Deferred.Or_error.t

Establish a single connection to a database. This must only be used by one thread at a time, cooperative or not.

val connect_pool : ?max_size:int -> Uri.t -> (module CONNECTION) Pool.t

Create a pool of connections which can be shared among multiple cooperative threads run from the main system thread.

OCaml

Innovation. Community. Security.