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(cursor) ⇒ Object
Constructor Details
#initialize(base_type, modifiers, properties) ⇒ TransactionIdType
Returns a new instance of TransactionIdType.
356 357 358 359 |
# File 'lib/innodb/data_type.rb', line 356 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.
353 354 355 |
# File 'lib/innodb/data_type.rb', line 353 def name @name end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
354 355 356 |
# File 'lib/innodb/data_type.rb', line 354 def width @width end |
Instance Method Details
#read(cursor) ⇒ Object
361 362 363 |
# File 'lib/innodb/data_type.rb', line 361 def read(cursor) cursor.name("transaction_id") { cursor.read_uint48 } end |