You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
ellmetha
changed the title
Make it possible to combine querysets using binary operators
Make it possible to combine query sets using binary operators
Oct 27, 2023
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.The text was updated successfully, but these errors were encountered: