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/Caqti_connect_config/index.html

Module Caqti_connect_configSource

Configuration passed to connect functions.

Sourcetype _ key
Sourcetype t

Construction and Lookup

Sourceval default : t

The configuration with all keys set to their default values.

Sourceval get : 'a key -> t -> 'a

get key cfg is the value associated with key in cfg, which may be a default value if the key has not been explicitly set or if it has been reset.

Sourceval set : 'a key -> 'a -> t -> t

set key value cfg associates key with value in cfg.

Sourceval reset : 'a key -> t -> t

reset key cfg associates key with its default value in cfg.

Configuration Keys

Sourceval tweaks_version : (int * int) key

Declares compatibility with database tweaks introduced up to the given version of Caqti. Defaults to a conservative value.

Sourceval dynamic_prepare_capacity : int key

The maximum number of dynamic queries to keep in the prepare-cache.

Sourceval enable_query_annotations : bool key

Whether to add source annotations as comments in generated SQL code.