use super::*;
use sqlx::ConnectOptions;
use tracing::info;
pub async fn get_single_connection(
opt: &BasiliqDbConnectionOption,
) -> Result<sqlx::PgConnection, sqlx::Error> {
info!("Connecting to the database..."); let res = opt.connection_option().connect().await?;
info!("Connected"); Ok(res)
}