macro_rules! query {
($select:expr) => { ... };
($select:expr $(,$subquery:expr)+) => { ... };
}
Expand description
Accepts a SELECT FROM
format string and optional subqueries. If subqueries are provided, there
should be curly braces {}
in the format string to interpolate each subquery’s sql string into.
Concatenates subqueries to the SELECT FROM
clause, and creates a new RawQuery
from the
concatenated sql string. The binds from each subquery are added in the order they appear in the
macro parameter. Subqueries are consumed into the new RawQuery
.