Skip to main content

Module encode

Module encode 

Source
Expand description

PostgreSQL type encoding (Rust → PostgreSQL).

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

Enums§

Format
Wire format for PostgreSQL values.

Traits§

BinaryEncode
Encode a value to PostgreSQL binary format.
Encode
Combined encoding trait that supports both formats.
TextEncode
Encode a value to PostgreSQL text format.

Functions§

encode_date_days
Encode a date as days since Unix epoch.
encode_time_micros
Encode a time as microseconds since midnight.
encode_timestamp_micros
Encode a timestamp as microseconds since Unix epoch.
encode_value
Encode a dynamic Value to the specified format.