package pgx

  1. Overview
  2. Docs

Module Pgx.ValueSource

Sourcetype v

v is opaque because the exact contents depend on Postgres types, so you could have two v's with the same value but different internal data representation, for example if you did a SELECT 'a'::bytea vs SELECT 'a'::varchar, the internal representation will be different, but the actual data if you use to_binary or to_string will be the same.

Sourceval compare_v : v -> v -> int
Sourceval sexp_of_v : v -> Sexplib0.Sexp.t
Sourcetype t = v option
include Ppx_compare_lib.Comparable.S with type t := t
Sourceval compare : t Base__Ppx_compare_lib.compare
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceexception Conversion_failure of string
Sourceval required : ('a -> 'b) -> 'a option -> 'b
Sourceval opt : ('a -> t) -> 'a option -> t
Sourceval null : t
Sourceval of_binary : string -> t
Sourceval to_binary_exn : t -> string
Sourceval to_binary : t -> string option
Sourceval of_bool : bool -> t
Sourceval to_bool_exn : t -> bool
Sourceval to_bool : t -> bool option
Sourceval of_float : float -> t
Sourceval to_float_exn : t -> float
Sourceval to_float : t -> float option
Sourcetype hstore = (string * string option) list
Sourceval compare_hstore : hstore -> hstore -> int
Sourceval sexp_of_hstore : hstore -> Sexplib0.Sexp.t
Sourceval of_hstore : hstore -> t
Sourceval to_hstore_exn : t -> hstore
Sourceval to_hstore : t -> hstore option
Sourcetype inet = Ipaddr.t * int
Sourceval compare_inet : inet -> inet -> int
Sourceval sexp_of_inet : inet -> Sexplib0.Sexp.t
Sourceval of_inet : inet -> t
Sourceval to_inet_exn : t -> inet
Sourceval to_inet : t -> inet option
Sourceval of_int : int -> t
Sourceval to_int_exn : t -> int
Sourceval to_int : t -> int option
Sourceval of_int32 : int32 -> t
Sourceval to_int32_exn : t -> int32
Sourceval to_int32 : t -> int32 option
Sourceval of_int64 : int64 -> t
Sourceval to_int64_exn : t -> int64
Sourceval to_int64 : t -> int64 option
Sourceval of_list : t list -> t
Sourceval to_list_exn : t -> t list
Sourceval to_list : t -> t list option
Sourcetype point = float * float
Sourceval compare_point : point -> point -> int
Sourceval sexp_of_point : point -> Sexplib0.Sexp.t
Sourceval of_point : point -> t
Sourceval to_point_exn : t -> point
Sourceval to_point : t -> point option
Sourceval of_string : string -> t
Sourceval to_string_exn : t -> string
Sourceval to_string : t -> string option
Sourceval unit : t
Sourceval to_unit_exn : t -> unit
Sourceval to_unit : t -> unit option
Sourcetype uuid = Uuidm.t
Sourceval compare_uuid : uuid -> uuid -> int
Sourceval sexp_of_uuid : uuid -> Sexplib0.Sexp.t
Sourceval of_uuid : uuid -> t
Sourceval to_uuid_exn : t -> uuid
Sourceval to_uuid : t -> uuid option
Sourceval convert_failure : ?hint:string -> string -> string -> _

convert_failure type_ str raises Convert_failure with a useful error message. Add ~hint if there's additional info you can give the user about the error.