Class: ActiveRecord::ConnectionAdapters::MysqlAdapter::Column
- Inherits:
-
JdbcColumn
- Object
- Column
- JdbcColumn
- ActiveRecord::ConnectionAdapters::MysqlAdapter::Column
- Includes:
- ArJdbc::MySQL::Column
- Defined in:
- lib/arjdbc/mysql/adapter.rb
Instance Attribute Summary collapse
-
#collation ⇒ Object
readonly
Returns the value of attribute collation.
-
#extra ⇒ Object
readonly
Returns the value of attribute extra.
-
#strict ⇒ Object
readonly
Returns the value of attribute strict.
Attributes inherited from JdbcColumn
Instance Method Summary collapse
- #adapter ⇒ Object
-
#initialize(name, default, sql_type = nil, null = true, collation = nil, strict = false, extra = "") ⇒ Column
constructor
A new instance of Column.
Methods included from ArJdbc::MySQL::Column
#extract_default, #extract_limit, #has_default?, #missing_default_forged_as_empty_string?, #simplified_type
Methods inherited from JdbcColumn
column_types, #default_value, #init_column
Constructor Details
#initialize(name, default, sql_type = nil, null = true, collation = nil, strict = false, extra = "") ⇒ Column
Returns a new instance of Column.
610 611 612 613 614 615 616 617 |
# File 'lib/arjdbc/mysql/adapter.rb', line 610 def initialize(name, default, sql_type = nil, null = true, collation = nil, strict = false, extra = "") if Hash === name super # first arg: config else @strict = strict; @collation = collation; @extra = extra super(name, default, sql_type, null) end end |
Instance Attribute Details
#collation ⇒ Object (readonly)
Returns the value of attribute collation.
608 609 610 |
# File 'lib/arjdbc/mysql/adapter.rb', line 608 def collation @collation end |
#extra ⇒ Object (readonly)
Returns the value of attribute extra.
608 609 610 |
# File 'lib/arjdbc/mysql/adapter.rb', line 608 def extra @extra end |
#strict ⇒ Object (readonly)
Returns the value of attribute strict.
608 609 610 |
# File 'lib/arjdbc/mysql/adapter.rb', line 608 def strict @strict end |
Instance Method Details
#adapter ⇒ Object
Note:
ArJdbc::MySQL::Column uses this to check for boolean emulation
620 621 622 |
# File 'lib/arjdbc/mysql/adapter.rb', line 620 def adapter MysqlAdapter end |