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

### Methods

fetch_rows supports_window_functions?

### Constants

MAX_COL_SIZE | = | 256

### Public Instance methods

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

[Source]

        # File lib/sequel/adapters/db2.rb, line 80
    80:       def fetch_rows(sql)
    81:         execute(sql) do |sth|
    82:           @column_info = get_column_info(sth)
    83:           @columns = @column_info.map {|c| output_identifier(c[:name])}
    84:           while (rc = SQLFetch(@handle)) != SQL_NO_DATA_FOUND
    85:             @db.check_error(rc, "Could not fetch row")
    86:             yield hash_row(sth)
    87:           end
    88:         end
    89:         self
    90:       end

supports_window_functions?()

DB2 supports window functions

[Source]

        # File lib/sequel/adapters/db2.rb, line 93
    93:       def supports_window_functions?
    94:         true
    95:       end

[Validate]