linq!() { /* proc-macro */ }Expand description
Compile-time LINQ-to-SQL.
ⓘ
linq!(ctx.set::<Blog>(), |b: Blog| b.rating > 5).to_list().await?;
let expr = linq!(|b: Blog| b.rating > min);
ctx.set::<Blog>().filter(expr).to_list().await?;