Class: Sequel::DB2::Dataset

Class | Sequel::DB2::Dataset
In: | lib/sequel_core/adapters/db2.rb
Parent: | Sequel::Dataset

### Methods

fetch_rows literal

### Constants

MAX_COL_SIZE | = | 256

### Public Instance methods

fetch_rows(sql) {|hash_row(sth)| ...}

[Source]

        # File lib/sequel_core/adapters/db2.rb, line 89
    89:       def fetch_rows(sql)
    90:         execute(sql) do |sth|
    91:           @column_info = get_column_info(sth)
    92:           @columns = @column_info.map {|c| output_identifier(c[:name])}
    93:           while (rc = SQLFetch(@handle)) != SQL_NO_DATA_FOUND
    94:             @db.check_error(rc, "Could not fetch row")
    95:             yield hash_row(sth)
    96:           end
    97:         end
    98:         self
    99:       end

literal(v)

[Source]

        # File lib/sequel_core/adapters/db2.rb, line 78
    78:       def literal(v)
    79:         case v
    80:         when Time
    81:           literal(v.iso8601)
    82:         when Date, DateTime
    83:           literal(v.to_s)
    84:         else
    85:           super
    86:         end
    87:       end

[Validate]