Skip to main content

select

Macro select 

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

Create a SELECT query for a model.

§Example

let heroes = select!(Hero)
    .filter(Hero::age.gt(18))
    .order_by(Hero::name.asc())
    .all(cx, &conn)
    .await?;