[odb-users] Query with conditional parts
Boris Kolpackov
boris at codesynthesis.com
Tue Oct 4 10:32:33 EDT 2016
Hi Aarón,
Aarón Bueno Villares <abv150ci at gmail.com> writes:
> There's no comments or examples in the ODB's documentation telling if that
> can be done or what is the type of `q_t::field_1` or `q_t::field_1 == 5`.
There is an example in Section 4.3, "Executing a Query".
> My question is: can ODB officially say that queries can be composed in
> steps?
Yes.
We haven't specified the query_base type yet, but at this stage it is safe
to assume it's not going anywhere. But if you can use C++11 auto, then it's
even better.
Boris
More information about the odb-users
mailing list