package caqti-lwt

  1. Overview
  2. Docs
Lwt support for Caqti

Install

dune-project
 Dependency

Authors

Maintainers

Sources

caqti-v2.3.2.tbz
sha256=8f6c1724b59ac22a5c657c9e53b9a1706e39ecd462e82958b0cea88e43f0aba7
sha512=75b968ab37ae94cadcaabbcce0f91b1ffa4334ed69e441bdeb823077eb7675264282efb0fab3baaaad446582cfb427769e19f22c8c194a316ac2248c3fba5cf8

doc/caqti-lwt/Caqti_lwt/index.html

Module Caqti_lwtSource

Prerequisities for connecting to databases using Lwt

This module contains most of the prerequisite types and modules. Functions to establish database connections are provided by the caqti-lwt.unix and caqti-mirage libraries. Pool instances are also found there due to additional OS dependencies.

Sourcemodule Stream : Caqti_stream_sig.S with type 'a fiber := 'a Lwt.t
Sourcemodule Switch : Caqti_switch_sig.S with type 'a fiber := 'a Lwt.t
Sourcemodule type CONNECTION = Caqti_connection_sig.S with type 'a fiber := 'a Lwt.t and type ('a, 'e) stream := ('a, 'e) Stream.t
Sourcetype connection = (module CONNECTION)
Sourceval or_fail : ('a, [< Caqti_error.t ]) result -> 'a Lwt.t

Converts an error to an Lwt future failed with a Caqti_error.Exn exception holding the error.