Module: Sequel::Dataset::UnsupportedIntersectExceptAll
- Defined in:
- lib/sequel/adapters/utils/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
32 33 34 35 |
# File 'lib/sequel/adapters/utils/unsupported.rb', line 32 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
38 39 40 41 |
# File 'lib/sequel/adapters/utils/unsupported.rb', line 38 def intersect(ds, all=false) raise(Sequel::Error, "INTERSECT ALL not supported") if all super(ds) end |