blob: e3cb48be7b1ce80e22c850ea56bb7409fc057ea3 (
plain)
use exun::{RawUnexpected, ResultErrorExt};
use sqlx::MySqlPool;
mod client;
mod jwt;
mod user;
pub use self::jwt::*;
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()
}
|