package caqti-lwt

  1. Overview
  2. Docs
Lwt support for Caqti

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-v2.2.4.tbz
sha256=b8ea432820154ec095132c4f7b244b06cd8553e0b2035185b844d9c4f30af8bb
sha512=b7e3ad8e6a9b587db2d517e15cd42df2945148f9223b2fa6f4bc2bcdd2709d53549cca4b65e54511d22466e4c9aa7f0b9c17305a07505519d8bf81d95de629b8

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.

OCaml

Innovation. Community. Security.