#[query]
Attribute macro for defining SQL functions in handlers.
#[sqlmodel::query] async fn get_heroes(cx: &Cx, conn: &impl Connection) -> Vec<Hero> { sqlmodel::select!(Hero).all(cx, conn).await }