Class: Sequel::Informix::Dataset

Class | Sequel::Informix::Dataset
In: | lib/sequel_core/adapters/informix.rb
Parent: | Sequel::Dataset

### Methods

fetch_rows literal

### Included Modules

UnsupportedIntersectExcept

### Constants

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

### Public Instance methods

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

[Source]

        # File lib/sequel_core/adapters/informix.rb, line 53
    53:       def fetch_rows(sql, &block)
    54:         execute(sql) do |cursor|
    55:           begin
    56:             col_map = nil
    57:             cursor.open.each_hash do |h|
    58:               unless col_map
    59:                 col_map = {}
    60:                 @columns = h.keys.map{|k| col_map[k] = output_identifier(k)}
    61:               end
    62:               h2 = {}
    63:               h.each{|k,v| h2[col_map[k]||k] = v}
    64:               yield h2
    65:             end
    66:           ensure
    67:             cursor.drop
    68:           end
    69:         end
    70:         self
    71:       end

literal(v)

[Source]

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

[Validate]