zero_postgres/protocol/mod.rs
1//! PostgreSQL wire protocol implementation.
2//!
3//! This module contains the low-level protocol encoding and decoding.
4//!
5//! # Structure
6//!
7//! - `backend`: Server → Client messages (parsing)
8//! - `frontend`: Client → Server messages (encoding)
9//! - `copy`: COPY protocol messages (shared between frontend and backend)
10//! - `codec`: Low-level encoding/decoding primitives
11//! - `types`: Common protocol types (FormatCode, Oid, TransactionStatus)
12
13pub mod backend;
14pub mod codec;
15pub mod copy;
16pub mod frontend;
17pub mod types;
18
19// Re-export commonly used types
20pub use backend::RawMessage;
21pub use copy::{CopyData, CopyDone};
22pub use types::{FormatCode, Oid, TransactionStatus};