blob: 9789e51d543812a180b8f0e5746186e66c49c297 (
plain)
use exun::{RawUnexpected, ResultErrorExt};
use sqlx::MySqlPool;
mod client;
mod user;
pub use client::*;
pub use user::*;
/// Intialize the connection pool
pub async fn initialize(db_url: &str) -> Result<MySqlPool, RawUnexpected> {
MySqlPool::connect(db_url).await.unexpect()
}
|