Class/Module Index [+]

Quicksearch

Sequel::Oracle::DatasetMethods

Public Instance Methods

empty?() click to toggle source
# File lib/sequel/adapters/shared/oracle.rb, line 106
def empty?
  db[:dual].where(exists).get(1) == nil
end
except(dataset, opts={}) click to toggle source

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

# File lib/sequel/adapters/shared/oracle.rb, line 100
def except(dataset, opts={})
  opts = {:all=>opts} unless opts.is_a?(Hash)
  raise(Sequel::Error, "EXCEPT ALL not supported") if opts[:all]
  compound_clone(:minus, dataset, opts)
end
insert(*args) click to toggle source

If this dataset is associated with a sequence, return the most recently inserted sequence value.

# File lib/sequel/adapters/shared/oracle.rb, line 112
def insert(*args)
  r = super
  if s = opts[:sequence]
    with_sql("SELECT #{literal(s)}.currval FROM dual").single_value.to_i
  else
    r
  end
end
requires_sql_standard_datetimes?() click to toggle source

Oracle requires SQL standard datetimes

# File lib/sequel/adapters/shared/oracle.rb, line 122
def requires_sql_standard_datetimes?
  true
end
sequence(s) click to toggle source

Create a copy of this dataset associated to the given sequence name, which will be used when calling insert to find the most recently inserted value for the sequence.

# File lib/sequel/adapters/shared/oracle.rb, line 129
def sequence(s)
  clone(:sequence=>s)
end
supports_intersect_except_all?() click to toggle source

Oracle does not support INTERSECT ALL or EXCEPT ALL

# File lib/sequel/adapters/shared/oracle.rb, line 134
def supports_intersect_except_all?
  false
end
supports_timestamp_timezones?() click to toggle source

Oracle supports timezones in literal timestamps.

# File lib/sequel/adapters/shared/oracle.rb, line 139
def supports_timestamp_timezones?
  true
end
supports_window_functions?() click to toggle source

Oracle supports window functions

# File lib/sequel/adapters/shared/oracle.rb, line 144
def supports_window_functions?
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.