footing 0.1.2

Feature-gated foundations for Rust backend services
Documentation
//! SQLx PostgreSQL helpers with explicit configuration, diagnostics, and runtime boundaries.

#[cfg(feature = "postgres-admin")]
pub(crate) mod admin;
mod config;
mod diagnostics;
mod runtime;

pub use config::{
    PostgresBootstrapConfig, PostgresBootstrapSettings, PostgresPoolConfig, PostgresPoolSettings,
    PostgresStartupRetryConfig, PostgresStartupRetrySettings,
};
pub use diagnostics::{
    MigrationFailureKind, PostgresBootstrapError, PostgresDiagnostic, PostgresDiagnosticKind,
    PostgresOperation, PostgresPoolError, diagnose_migration_error, diagnose_pool_error,
    diagnose_sqlx_error,
};
pub use runtime::{
    PostgresHealth, PostgresHealthStatus, PostgresMigrationRunError, PostgresTransaction,
    acquire_advisory_transaction_lock, acquire_shared_advisory_transaction_lock, advisory_lock_key,
    begin_transaction, bootstrap_database, check_pool_health, commit_transaction,
    connect_lazy_pool, connect_pool, connect_pool_with_retry, database_name,
    ensure_database_exists, ensure_database_exists_with_retry, ping_pool, pool_options,
    redact_database_url, rollback_transaction, run_migrations, run_migrations_with_advisory_lock,
    try_acquire_advisory_transaction_lock,
};

#[cfg(test)]
use runtime::POSTGRES_HEALTH_ERROR;

#[cfg(test)]
mod tests;