Function ::exo::db::insert_record

Overview
async fn insert_record(value: Record) -> Result

Insert a new record into the database.

Example:

let model = exo::get_model()?;
let record = model.new_record();
let db_record = exo::db::insert_record(record).await?;
assert_eq!(db_record.uuid, record.uuid);