Skip to main content

insert

Macro insert 

Source
macro_rules! insert {
    ($model:expr) => { ... };
}
Expand description

Create an INSERT query for a model.

§Example

let id = insert!(hero)
    .execute(cx, &conn)
    .await?;