Class: ODBCAdapter::Column
- Inherits:
-
ActiveRecord::ConnectionAdapters::Column
- Object
- ActiveRecord::ConnectionAdapters::Column
- ODBCAdapter::Column
- Defined in:
- lib/odbc_adapter/column.rb
Instance Attribute Summary collapse
-
#native_type ⇒ Object
readonly
Returns the value of attribute native_type.
Instance Method Summary collapse
-
#initialize(name, default, sql_type_metadata = nil, null = true, table_name = nil, native_type = nil, default_function = nil, collation = nil) ⇒ Column
constructor
Add the native_type accessor to allow the native DBMS to report back what it uses to represent the column internally.
Constructor Details
#initialize(name, default, sql_type_metadata = nil, null = true, table_name = nil, native_type = nil, default_function = nil, collation = nil) ⇒ Column
Add the native_type accessor to allow the native DBMS to report back what it uses to represent the column internally. rubocop:disable Metrics/ParameterLists
8 9 10 11 |
# File 'lib/odbc_adapter/column.rb', line 8 def initialize(name, default, = nil, null = true, table_name = nil, native_type = nil, default_function = nil, collation = nil) super(name, default, , null, table_name, default_function, collation) @native_type = native_type end |
Instance Attribute Details
#native_type ⇒ Object (readonly)
Returns the value of attribute native_type.
3 4 5 |
# File 'lib/odbc_adapter/column.rb', line 3 def native_type @native_type end |