Crate qail_pg

Crate qail_pg 

Source
Expand description

PostgreSQL driver with AST-native wire encoding.

Features: Zero-alloc encoding, LRU cache (100 max), connection pooling, COPY protocol.

let mut driver = PgDriver::connect("localhost", 5432, "user", "db").await?;
let rows = driver.fetch_all(&Qail::get("users").limit(10)).await?;

Re-exports§

pub use driver::PgConnection;
pub use driver::PgDriver;
pub use driver::PgDriverBuilder;
pub use driver::PgError;
pub use driver::PgPool;
pub use driver::PgResult;
pub use driver::PgRow;
pub use driver::PoolConfig;
pub use driver::PoolStats;
pub use driver::PooledConnection;
pub use driver::QailRow;
pub use protocol::PgEncoder;
pub use types::Date;
pub use types::FromPg;
pub use types::Json;
pub use types::Numeric;
pub use types::Time;
pub use types::Timestamp;
pub use types::ToPg;
pub use types::TypeError;
pub use types::Uuid;

Modules§

driver
PostgreSQL Driver Module (Layer 3: Async I/O)
protocol
PostgreSQL Wire Protocol (Layer 2: Pure, Sync)
types
Type conversion traits and implementations for PostgreSQL types.