Class: ODBCAdapter::Column

Inherits:
ActiveRecord::ConnectionAdapters::Column
  • Object
show all
Defined in:
lib/odbc_adapter/column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (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