Files
alkstore/alkstore-postgres/src/lib.rs
T

28 lines
1.1 KiB
Rust

//! alkstore-postgres — the Postgres engine: the core contract
//! implemented on tokio-postgres + deadpool-postgres (ADR-001,
//! ADR-004).
//!
//! # Posture
//!
//! **Multi-host by nature** (ADR-016): connections are per-process
//! state; nothing assumes a shared host — this engine's deployment
//! boundary is its crate identity (compile-time engine discovery:
//! pick this crate, get this posture). No runtime capability surface.
//!
//! **Natively async** (ADR-004/ADR-007): no blocking bridge, no
//! `spawn_blocking` seam — the driver's client is `Send + Sync` and
//! the tx handle holds the pooled object directly (POC #2
//! compile-probe verified).
//!
//! Wave 4 build order: schema bootstrap (this module — the dependency
//! root), then `open`/`PgOpts` + pool + listener wiring, the tx seam,
//! the LISTEN forwarder, the mechanisms (queues, streams, locks,
//! scheduler/outbox); each task replaces the prior stubs.
mod schema;
pub use schema::{
BootstrapError, BootstrapResult, DEFAULT_SCHEMA, QualifiedTable, bootstrap, quote_identifier,
tables,
};