package caqti

  1. Overview
  2. Docs
Abstraction over multiple database libraries

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-0.9.0.tbz
sha256=4c84a16d983d0fed2786f536a3fa4d8fa113b8b30b4deea4a74772582d5489b2
md5=42a2e2d3b73d7fbaecc618549aad2865

doc/caqti.v1/Caqti1_sigs/module-type-CAQTI/index.html

Module type Caqti1_sigs.CAQTISource

The connect functions as exposed to application code through the concurrency implementations:

  • Caqti_lwt provided by caqti-lwt.
  • Caqti_async provided by caqti-async.
Sourcetype 'a io
Sourcemodule Pool : Caqti1_pool_sig.S with type 'a io := 'a io

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

Sourcemodule type CONNECTION = CONNECTION with type 'a io = 'a io
Sourceval connect : Uri.t -> (module CONNECTION) io

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

Sourceval 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.