module Sequel::IBMDB

  1. lib/sequel/adapters/ibmdb.rb
Parent: Sequel

Methods

Public Class

  1. convert_smallint_to_bool

Public Instance

  1. boolean
  2. int

Constants

DB2_TYPES = { :boolean => tt.method(:boolean), :int => tt.method(:int), :blob => ::Sequel::SQL::Blob.method(:new), :time => ::Sequel.method(:string_to_time), :date => ::Sequel.method(:string_to_date) }  

Hash holding type translation methods, used by Sequel::IBMDB::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.

Public Instance methods

boolean (s)
[show source]
# File lib/sequel/adapters/ibmdb.rb, line 16
def boolean(s) !s.to_i.zero? end
int (s)
[show source]
# File lib/sequel/adapters/ibmdb.rb, line 17
def int(s) s.to_i end