Function item_of_types
pub fn item_of_types(types: &[&str]) -> QueryItemExpand description
Builds a query item constrained by type alone.
The item builders exist because a multi-item query is where an adapter’s
generated SQL is most likely to be wrong — an unparenthesised WHERE a OR b AND position >= ?, one statement per item unioned without a final sort — and
a suite that could only build single-item queries conveniently was a suite
that mostly built single-item queries.
§Panics
Panics if types is empty or holds an invalid type. Test-only helper.