package caqti

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

caqti-v1.6.0.tbz
sha256=1bf0c0d60547033c10d6148cf5297b25ab66c9a2832b680329df2f3816bc674d
sha512=0b03bd1788d99bbac59679338768a5633ec473346eed333fca4c104bc88f04c24e138af2228fc20dcf295b7106778328d228643ae8235a3f722f54cc69919295

doc/caqti/Caqti_type/Field/index.html

Module Caqti_type.FieldSource

Facilities for extending and using primitive field types.

Sourcetype 'a t = 'a field
Sourcetype _ coding =
  1. | Coding : {
    1. rep : 'b t;
    2. encode : 'a -> ('b, string) result;
    3. decode : 'b -> ('a, string) result;
    } -> 'a coding
Sourcetype get_coding = {
  1. get_coding : 'a. Caqti_driver_info.t -> 'a t -> 'a coding;
}
Sourceval define_coding : 'a field -> get_coding -> unit
Sourceval coding : Caqti_driver_info.t -> 'a field -> 'a coding option
Sourceval to_string : 'a t -> string