Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Pgx_value types using Ptime's Date and Time modules
To use Ptime in utop, first run: #require "ptime";;
type v = Pgx.Value.v
type t = Pgx.Value.t
include module type of Pgx.Value with type v := v and type t := t
val sexp_of_v : v -> Sexplib0.Sexp.t
include Ppx_compare_lib.Comparable.S with type t := t
val sexp_of_t : t -> Sexplib0.Sexp.t
val null : t
val of_binary : string -> t
val to_binary_exn : t -> string
val to_binary : t -> string option
val of_bool : bool -> t
val to_bool_exn : t -> bool
val to_bool : t -> bool option
val of_float : float -> t
val to_float_exn : t -> float
val to_float : t -> float option
val sexp_of_hstore : hstore -> Sexplib0.Sexp.t
type inet = Ipaddr.t * int
val sexp_of_inet : inet -> Sexplib0.Sexp.t
val of_int : int -> t
val to_int_exn : t -> int
val to_int : t -> int option
val of_int32 : int32 -> t
val to_int32_exn : t -> int32
val to_int32 : t -> int32 option
val of_int64 : int64 -> t
val to_int64_exn : t -> int64
val to_int64 : t -> int64 option
val sexp_of_point : point -> Sexplib0.Sexp.t
val of_string : string -> t
val to_string_exn : t -> string
val to_string : t -> string option
val unit : t
val to_unit_exn : t -> unit
val to_unit : t -> unit option
type uuid = Uuidm.t
val sexp_of_uuid : uuid -> Sexplib0.Sexp.t
val of_date : Ptime.date -> t
val to_date_exn : t -> Ptime.date
val to_date : t -> Ptime.date option
val of_time : ?tz_offset_s:Ptime.tz_offset_s -> Ptime.t -> t
val to_time_exn : t -> Ptime.t * Ptime.tz_offset_s
val to_time : t -> (Ptime.t * Ptime.tz_offset_s) option
val time_of_string : string -> Ptime.t * Ptime.tz_offset_s