Sometimes it is necessary to combine the results of two distinct query sets. Presently it is not possible to do so without incurring two distinct SQL queries to the database.
To palliate this, let's add support for combining querysets by using the & and | operators. With this new capability, it would become possible to combine two query sets using those operators as follows:
Description
Sometimes it is necessary to combine the results of two distinct query sets. Presently it is not possible to do so without incurring two distinct SQL queries to the database.
To palliate this, let's add support for combining querysets by using the
&
and|
operators. With this new capability, it would become possible to combine two query sets using those operators as follows:In order to make this possible, we should implement the
#&
and#|
methods at theMarten::DB::Query::Set
abstraction level.