Class: Innodb::DataType::TransactionIdType
- Inherits:
-
Object
- Object
- Innodb::DataType::TransactionIdType
- Defined in:
- lib/innodb/data_type.rb
Overview
Transaction ID.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(base_type, modifiers, properties) ⇒ TransactionIdType
constructor
A new instance of TransactionIdType.
- #read(c) ⇒ Object
Constructor Details
#initialize(base_type, modifiers, properties) ⇒ TransactionIdType
Returns a new instance of TransactionIdType.
328 329 330 331 |
# File 'lib/innodb/data_type.rb', line 328 def initialize(base_type, modifiers, properties) @width = 6 @name = Innodb::DataType.make_name(base_type, modifiers, properties) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
326 327 328 |
# File 'lib/innodb/data_type.rb', line 326 def name @name end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
326 327 328 |
# File 'lib/innodb/data_type.rb', line 326 def width @width end |
Instance Method Details
#read(c) ⇒ Object
333 334 335 |
# File 'lib/innodb/data_type.rb', line 333 def read(c) c.name("transaction_id") { c.get_hex(6) } end |