footing 0.1.3

Feature-gated foundations for Rust backend services
Documentation
//! Database helpers.
//!
//! Currently this module exposes PostgreSQL pool and startup bootstrap helpers
//! built on SQLx.
//!
mod postgres;

pub use postgres::{
    MigrationFailureKind, PostgresBootstrapConfig, PostgresBootstrapError,
    PostgresBootstrapSettings, PostgresDiagnostic, PostgresDiagnosticKind, PostgresHealth,
    PostgresHealthStatus, PostgresMigrationRunError, PostgresOperation, PostgresPoolConfig,
    PostgresPoolError, PostgresPoolSettings, PostgresStartupRetryConfig,
    PostgresStartupRetrySettings, 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, diagnose_migration_error, diagnose_pool_error,
    diagnose_sqlx_error, 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,
};

/// Explicitly gated destructive PostgreSQL administration operations.
#[cfg(feature = "postgres-admin")]
#[cfg_attr(docsrs, doc(cfg(feature = "postgres-admin")))]
pub mod admin {
    pub use super::postgres::admin::{
        PostgresResetConfig, PostgresResetError, PostgresResetOutcome, PostgresResetSettings,
        reset_database,
    };
}