package caqti

  1. Overview
  2. Docs

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
OCaml

Innovation. Community. Security.