Module: Sequel::SqlAnywhere
- Defined in:
- lib/sequel/adapters/sqlanywhere.rb,
lib/sequel/adapters/shared/sqlanywhere.rb
Overview
Module for holding all SqlAnywhere-related classes and modules for Sequel.
Defined Under Namespace
Modules: DatabaseMethods, DatasetMethods Classes: Database, Dataset, SQLAnywhereException
Constant Summary collapse
- 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
- SQLANYWHERE_TYPES =
{}
Class Attribute Summary collapse
-
.convert_smallint_to_bool ⇒ Object
Whether to convert smallint values to bool, false by default.
Class Attribute Details
.convert_smallint_to_bool ⇒ Object
Whether to convert smallint values to bool, false by default. Can also be overridden per dataset.
9 10 11 |
# File 'lib/sequel/adapters/shared/sqlanywhere.rb', line 9 def convert_smallint_to_bool @convert_smallint_to_bool end |