Module: Sequel::Dataset::UnsupportedIntersectExceptAll

Defined in:
lib/sequel_core/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

Instance Method Details

#except(ds, all = false) ⇒ Object

Raise an Error if EXCEPT is used

Raises:



32
33
34
35
# File 'lib/sequel_core/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

Raises:



38
39
40
41
# File 'lib/sequel_core/adapters/utils/unsupported.rb', line 38

def intersect(ds, all=false)
  raise(Sequel::Error, "INTERSECT ALL not supported") if all
  super(ds)
end