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§
- Binary
Encode - Encode a value to PostgreSQL binary format.
- Encode
- Combined encoding trait that supports both formats.
- Text
Encode - 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.