package caqti

  1. Overview
  2. Docs
Unified interface to relational database libraries

Install

dune-project
 Dependency

Authors

Maintainers

Sources

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

doc/caqti_platform_unix/Caqti_platform_unix/Driver_loader/index.html

Module Caqti_platform_unix.Driver_loaderSource

Connection functor and registration for driver using the Unix module.

Registration

Sourcemodule type DRIVER_FUNCTOR = functor (System : Caqti_platform.System_sig.S) -> functor (_ : System_sig.S with type 'a fiber := 'a System.Fiber.t and type stdenv := System.stdenv) -> Caqti_platform.Driver_loader.DRIVER with type 'a fiber := 'a System.Fiber.t and type ('a, 'err) stream := ('a, 'err) System.Stream.t and type switch := System.Switch.t and type stdenv := System.stdenv

The functor implemented by drivers dependent on the unix library.

Sourceval register : string -> (module DRIVER_FUNCTOR) -> unit

define_unix_driver scheme m installs m as a handler for the URI scheme scheme. This call must be done by a backend installed with findlib name caqti-driver-scheme as part of its initialization.

Usage

Sourcemodule Make (System : Caqti_platform.System_sig.S) (_ : System_sig.S with type 'a fiber := 'a System.Fiber.t and type stdenv := System.stdenv) : Caqti_platform.Driver_loader.S with type 'a fiber := 'a System.Fiber.t and type ('a, 'e) stream := ('a, 'e) System.Stream.t and type switch := System.Switch.t and type stdenv := System.stdenv

Constructs the main module used to connect to a database for the given concurrency model.