Skip to main content

Module decode

Module decode 

Source
Expand description

PostgreSQL type decoding (PostgreSQL → Rust).

This module provides traits and implementations for decoding PostgreSQL wire format values to Rust types in both text and binary representations.

Traits§

BinaryDecode
Decode a value from PostgreSQL binary format.
Decode
Combined decoding trait that supports both formats.
TextDecode
Decode a value from PostgreSQL text format.

Functions§

decode_date_days
Decode a date from PostgreSQL format.
decode_timestamp_micros
Decode a timestamp from PostgreSQL format.
decode_value
Decode a PostgreSQL value to a dynamic Value.
parse_date_string
Parse a date string in YYYY-MM-DD format.
parse_time_string
Parse a time string in HH:MM:SS[.ffffff] format.
parse_timestamp_string
Parse a timestamp string.