Class: Sequel::OpenBase::Dataset

Class | Sequel::OpenBase::Dataset
In: | lib/sequel_core/adapters/openbase.rb
Parent: | Sequel::Dataset

### Methods

fetch_rows literal

### Public Instance methods

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

[Source]

        # File lib/sequel_core/adapters/openbase.rb, line 51
    51:       def fetch_rows(sql)
    52:         execute(sql) do |result|
    53:           begin
    54:             @columns = result.column_infos.map{|c| output_identifier(c.name)}
    55:             result.each do |r|
    56:               row = {}
    57:               r.each_with_index {|v, i| row[@columns[i]] = v}
    58:               yield row
    59:             end
    60:           ensure
    61:             # result.close
    62:           end
    63:         end
    64:         self
    65:       end

literal(v)

[Source]

        # File lib/sequel_core/adapters/openbase.rb, line 40
    40:       def literal(v)
    41:         case v
    42:         when Time
    43:           literal(v.iso8601)
    44:         when Date, DateTime
    45:           literal(v.to_s)
    46:         else
    47:           super
    48:         end
    49:       end

[Validate]