Function ::exo::db::get_model

Overview
async fn get_model(value) -> Result

Get a single model from the database by it's uuid.

Example:

let model = exo::get_model()?;
let db_model = exo::db::get_model(model.uuid).await?;
assert_eq!(model.uuid, db_model.uuid);