module Sequel::SqlAnywhere

  1. lib/sequel/adapters/shared/sqlanywhere.rb
  2. lib/sequel/adapters/sqlanywhere.rb
  3. show all
Parent: Sequel

Module for holding all SqlAnywhere-related classes and modules for Sequel.

Methods

Public Class

  1. convert_smallint_to_bool

Constants

SQLANYWHERE_TYPES = {}  
TYPE_TRANSLATOR = tt = Class.new do def blob(s) ::Sequel::SQL::Blob.new(s) end def boolean(s) s.to_i != 0 end def date(s) ::Date.strptime(s) end def decimal(s) ::BigDecimal.new(s) end def time(s) ::Sequel.string_to_time(s) end end.new  

Attributes

convert_smallint_to_bool [RW]

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