package caqti

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

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-0.10.1.tbz
sha256=e2b1d83b54f4583fc1cf4775d006c68cab4ec0b95a359ab724d5305ada737280
md5=7abd1ee41a02eb7483617cbc22b09691

doc/caqti.v1/Caqti1_describe/index.html

Module Caqti1_describeSource

(v1) Types and utility functions for query descriptions.

  • deprecated

    Don't use this in new code.

Sourcetype typedesc = [
  1. | `Bool
  2. | `Int
  3. | `Float
  4. | `String
  5. | `Bytes
  6. | `Date
  7. | `Utc
  8. | `Other of string
  9. | `Unknown
]

Identification of a remote type. These correspond to the types described in Caqti_sigs.CONNECTION.Param. `Other s represents an backend-specific type s. The additional `Unknown tag is used by backends which are unable to determine parameter types.

Sourcetype querydesc = {
  1. querydesc_params : typedesc array;
    (*

    The types of the expected parameters for a query. The number of parameters should always correspond to the length of the array, but the parameters may be `Unknown in case the backend is unable to determine them.

    *)
  2. querydesc_fields : (string * typedesc) array;
    (*

    The names and types of components of tuples returned by the query.

    *)
}

The result of Caqti_sigs.CONNECTION.describe.

Sourceval string_of_typedesc : typedesc -> string

An informative textual representation of a type.

Sourceval string_of_querydesc : querydesc -> string

An informative textual description of query parameters and results.

OCaml

Innovation. Community. Security.