module Sequel::IBMDB

  1. lib/sequel/adapters/ibmdb.rb

Methods

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) }.freeze  

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

Public Instance methods

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