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 ๐Ÿ”’

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.
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.