Methods

Class Index [+]

Quicksearch

Sequel::DB2

Constants

DB2_TYPES

Hash holding type translation methods, used by Dataset#fetch_rows.

Attributes

convert_smallint_to_bool[RW]

Whether to convert smallint values to bool, true by default. Can also be overridden per dataset.

use_clob_as_blob[RW]

Whether to use clob as the generic File type, true by default.

Public Instance Methods

boolean(s) click to toggle source
    # File lib/sequel/adapters/db2.rb, line 21
21:       def boolean(s) !s.to_i.zero? end
date(s) click to toggle source
    # File lib/sequel/adapters/db2.rb, line 22
22:       def date(s) Date.new(s.year, s.month, s.day) end
time(s) click to toggle source
    # File lib/sequel/adapters/db2.rb, line 23
23:       def time(s) Sequel::SQLTime.create(s.hour, s.minute, s.second) end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.