Skip to main content

Module value

Module value 

Source

Modules§

error
Error types for decoding wire-format values and for fallible conversion from super::Value to mz_repr::Datum.
interval
jsonb
numeric
record
unsigned

Structs§

TextEncodeSettings
Session settings that affect how values are encoded as text.

Enums§

Value
A PostgreSQL datum.

Constants§

FLOAT4_DIGITS 🔒
The number of significant decimal digits that survive a round trip through f32 and f64 respectively.
FLOAT8_DIGITS 🔒
REGPROC_NULL 🔒
The text PostgreSQL’s regprocout emits for OID 0, and that regprocin reads back as OID 0.

Functions§

decode_binary_string 🔒
Decodes a binary-format string value, rejecting embedded NUL characters.
encode_element 🔒
format_float_limited 🔒
Formats f with ndig significant digits like C’s %.*g, mirroring PostgreSQL’s float4out/float8out when extra_float_digits is zero or negative. Like PostgreSQL, ndig values below 1 are clamped to 1, and non-finite values are spelled NaN, Infinity, and -Infinity.
is_number_shaped 🔒
Whether s is shaped like a decimal number, ignoring whether it is in range.
parse_regproc 🔒
Parses the text format of a regproc, matching PostgreSQL’s regprocin.
pg_len 🔒
reject_nul 🔒
Returns an error if s contains a NUL character, which PostgreSQL rejects in text values.
rescale_numeric 🔒
Rescales n to the scale required by constraints, if any.
values_from_row
Converts a Materialize row into a vector of PostgreSQL values.