Skip to main content

Module value

Module value 

Source
Expand description

Value type for RadixDB - runtime values with type information

This module provides a unified Value enum that represents SQL values with full type information and conversion capabilities.

Structs§

ExternalValueRef
Borrowed view of the canonical payload carried by an external value.

Enums§

Value
A runtime value with type information

Constants§

MAX_DECIMAL_PRECISION
MAX_EXTERNAL_VALUE_BYTES
NULL_VALUE
Static NULL value for zero-cost reuse

Functions§

format_bytes_hex
format_date_days_since_unix_epoch
format_decimal_parts
format_uuid_bytes
Format raw 16-byte UUID storage as canonical lowercase hyphenated text.
format_vector_bytes
Format packed LE f32 bytes as “[1.0, 2.0, 3.0]” string
parse_date_days_since_unix_epoch
parse_decimal_str
Parse a plain decimal string into exact wire-style decimal parts.
parse_timestamp
Parse a timestamp string with multiple format support
parse_uuid_str
Parse a UUID string into raw 16-byte UUID storage.
parse_vector_str
Parse a vector string in [f32, f32, …] format
validate_decimal_shape
Validate the declared physical DECIMAL payload.