#[cfg(feature = "postgres-admin")]
#[cfg_attr(docsrs, doc(cfg(feature = "postgres-admin")))]
pub mod admin;
mod config;
mod diagnostics;
mod runtime;
pub use config::{
PostgresBootstrapConfig, PostgresBootstrapSettings, PostgresPoolConfig, PostgresPoolSettings,
PostgresStartupRetryConfig, PostgresStartupRetrySettings,
};
pub use diagnostics::{
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;