Class: Sequel::Oracle::Dataset

Class | Sequel::Oracle::Dataset
In: | lib/sequel_core/adapters/oracle.rb
Parent: | Sequel::Dataset

### Methods

fetch_rows literal

### Included Modules

DatasetMethods

### Public Instance methods

fetch_rows(sql) {|row| ...}

[Source]

         # File lib/sequel_core/adapters/oracle.rb, line 90
     90:       def fetch_rows(sql, &block)
     91:         execute(sql) do |cursor|
     92:           begin
     93:             @columns = cursor.get_col_names.map{|c| output_identifier(c)}
     94:             while r = cursor.fetch
     95:               row = {}
     96:               r.each_with_index {|v, i| row[@columns[i]] = v unless @columns[i] == :raw_rnum_}
     97:               yield row
     98:             end
     99:           ensure
    100:             cursor.close
    101:           end
    102:         end
    103:         self
    104:       end

literal(v)

[Source]

        # File lib/sequel_core/adapters/oracle.rb, line 81
    81:       def literal(v)
    82:         case v
    83:         when OraDate
    84:           literal(Time.local(*v.to_a))
    85:         else
    86:           super
    87:         end
    88:       end

[Validate]