Module: Sequel::Dataset::UnsupportedIntersectExceptAll
- Defined in:
- lib/sequel_core/dataset/unsupported.rb
Overview
This module should be included in the dataset class for all databases that don’t support INTERSECT ALL or EXCEPT ALL.
Instance Method Summary collapse
-
#except(ds, all = false) ⇒ Object
Raise an Error if EXCEPT is used.
-
#intersect(ds, all = false) ⇒ Object
Raise an Error if INTERSECT is used.
Instance Method Details
#except(ds, all = false) ⇒ Object
Raise an Error if EXCEPT is used
20 21 22 23 |
# File 'lib/sequel_core/dataset/unsupported.rb', line 20 def except(ds, all=false) raise(Sequel::Error, "EXCEPT ALL not supported") if all super(ds) end |
#intersect(ds, all = false) ⇒ Object
Raise an Error if INTERSECT is used
26 27 28 29 |
# File 'lib/sequel_core/dataset/unsupported.rb', line 26 def intersect(ds, all=false) raise(Sequel::Error, "INTERSECT ALL not supported") if all super(ds) end |