package caqti

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

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-0.10.0.tbz
sha256=83c80e1b55e0311d9a97b1f591a3f504670c977e7e47f8ed827897ce8d4a05ad
md5=28a2a8f5235662e7a452b786ffdb4a7f

doc/caqti.v1/Caqti1_sigs/module-type-TUPLE/index.html

Module type Caqti1_sigs.TUPLESource

Tuple decoding functions.

These functions extracts and decodes components from a returned tuple. The first argument is the index, starting from 0. The conversion performed are the inverse of the same named functions of PARAM, so the documentation is not repeated here.

Note! Calls to these functions are only valid during a callback from one of the query execution functions. Returning a partial call or embedding the call in a returned monad leads to undefined behaviour.

Sourcetype t

An abstract type for a tuple passed by a backend to callbacks during query execution.

Sourceval length : t -> int
Sourceval is_null : int -> t -> bool
Sourceval option : (int -> t -> 'a) -> int -> t -> 'a option
Sourceval bool : int -> t -> bool
Sourceval int : int -> t -> int
Sourceval int32 : int -> t -> int32
Sourceval int64 : int -> t -> int64
Sourceval float : int -> t -> float
Sourceval string : int -> t -> string
Sourceval bytes : int -> t -> bytes
Sourceval date_string : int -> t -> string
Sourceval date_tuple : int -> t -> int * int * int
Sourceval date_cl : int -> t -> CalendarLib.Date.t
Sourceval utc_float : int -> t -> float
Sourceval utc_string : int -> t -> string
Sourceval utc_cl : int -> t -> CalendarLib.Calendar.t
OCaml

Innovation. Community. Security.