Module: Sequel::Oracle::DatasetMethods

Includes:
Dataset::SQLStandardDateFormat, Dataset::UnsupportedIntersectExceptAll
Included in:
JDBC::Oracle::Dataset, Dataset
Defined in:
lib/sequel_core/adapters/shared/oracle.rb

Constant Summary collapse

SELECT_CLAUSE_ORDER =
%w'distinct columns from join where group having compounds order limit'.freeze

Instance Method Summary collapse

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/sequel_core/adapters/shared/oracle.rb', line 29

def empty?
  db[:dual].where(exists).get(1) == nil
end

#except(dataset, all = false) ⇒ Object

Oracle uses MINUS instead of EXCEPT, and doesn’t support EXCEPT ALL

Raises:



24
25
26
27
# File 'lib/sequel_core/adapters/shared/oracle.rb', line 24

def except(dataset, all = false)
  raise(Sequel::Error, "EXCEPT ALL not supported") if all
  compound_clone(:minus, dataset, all)
end