package caqti

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

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

doc/caqti.platform/Caqti_platform/Driver_loader/index.html

Module Caqti_platform.Driver_loaderSource

Registration and Loading of Drivers

This interface is unstable and may change between minor versions. If you are developing an external driver, please open an issue to sort out requirements and to announce you need for a stable driver API.

Sourcemodule type DRIVER = sig ... end

This is the signature implemented by drivers, given the system dependencies. More precisely, drivers implement either DRIVER_FUNCTOR or Caqti_platform_unix.Driver_loader.DRIVER_FUNCTOR depending on requirements.

Registration

Sourcemodule type DRIVER_FUNCTOR = functor (System : System_sig.S) -> 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 independent from the unix library.

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

register scheme driver_functor registers driver_functor as the driver implementation for handling the URI scheme scheme.

Usage

Sourcemodule type S = sig ... end

The the interface used internally to load drivers.

Sourcemodule Make (System : System_sig.S) : 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

Instantiation of the loader interface for give system dependencies.