//! SQLx database adapter helpers.

pub mod config;
pub mod error;
pub mod pool;
pub mod transaction;

pub use config::{DatabaseConfig, DatabaseKind};
pub use error::{DatabaseError, DatabaseResult};
#[cfg(feature = "db-mysql")]
pub use pool::health_check_mysql;
#[cfg(feature = "db-postgres")]
pub use pool::health_check_postgres;
#[cfg(feature = "observability")]
pub use pool::health_check_with_metrics;
pub use pool::{DatabasePool, connect_pool, health_check};
#[cfg(feature = "db-mysql")]
pub use pool::{MySqlDatabasePool, connect_mysql_pool};
#[cfg(feature = "db-postgres")]
pub use pool::{PostgresDatabasePool, connect_postgres_pool};
#[cfg(feature = "db-sqlite")]
pub use pool::{SqliteDatabasePool, connect_sqlite_pool};
pub use transaction::run_transaction;
