class Sequel::Oracle::Dataset

  1. lib/sequel/adapters/oracle.rb
Superclass: Dataset

Included modules

  1. DatasetMethods

Constants

BindArgumentMethods = prepared_statements_module(:bind, ArgumentMapper)  
PreparedStatementMethods = prepared_statements_module(:prepare, BindArgumentMethods)  

Public Instance methods

fetch_rows(sql)
[show source]
    # File lib/sequel/adapters/oracle.rb
361 def fetch_rows(sql)
362   execute(sql) do |cursor|
363     cps = db.conversion_procs
364     cols = columns = cursor.get_col_names.map{|c| output_identifier(c)}
365     metadata = cursor.column_metadata
366     cm = cols.zip(metadata).map{|c, m| [c, cps[m.data_type]]}
367     self.columns = columns
368     while r = cursor.fetch
369       row = {}
370       r.zip(cm).each{|v, (c, cp)| row[c] = ((v && cp) ? cp.call(v) : v)}
371       yield row
372     end
373   end
374   self
375 end
requires_placeholder_type_specifiers?()

Oracle requires type specifiers for placeholders, at least if you ever want to use a nil/NULL value as the value for the placeholder.

[show source]
    # File lib/sequel/adapters/oracle.rb
380 def requires_placeholder_type_specifiers?
381   true
382 end