pub mod collection;
pub mod error;
pub mod jobs;
pub mod meta;
pub mod mutexes;
pub mod report;
pub mod snapshots;

pub async fn run_migrate(pool: &sqlx::MySqlPool) -> crate::error::Result<()> {
    match sqlx::migrate!().run(pool).await {
        Ok(_) => Ok(()),
        Err(e) => Err(e.into()),
    }
}

#[cfg(test)]
mod tests {}
