package caqti-lwt

  1. Overview
  2. Docs
Lwt support for Caqti

Install

dune-project
 Dependency

Authors

Maintainers

Sources

caqti-v3.0.0.tbz
sha256=3ceea06ba0e8e8bcab0386b5817b68cb30fce457eaa25ada0182891d66f6a0b9
sha512=e01f546a45b04cafd5fa262e9228e5a1aabd5e0942059c073a4181c928450baf3d990cc59ffb1a33dff445b46a0e218224a23dca96e8d24cdd0ab793d08e4538

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.S with type 'a fiber := 'a Lwt.t
Sourcemodule Switch : Caqti.Switch.S with type 'a fiber := 'a Lwt.t
Sourcemodule type CONNECTION = Caqti.Connection.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.