package caqti

  1. Overview
  2. Docs

Facilities for extending and using primitive field types.

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

Innovation. Community. Security.