Class: Innodb::DataType::TransactionIdType

Inherits:
Object
  • Object
show all
Defined in:
lib/innodb/data_type.rb

Overview

Transaction ID.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base_type, modifiers, properties) ⇒ TransactionIdType

Returns a new instance of TransactionIdType.



329
330
331
332
# File 'lib/innodb/data_type.rb', line 329

def initialize(base_type, modifiers, properties)
  @width = 6
  @name = Innodb::DataType.make_name(base_type, modifiers, properties)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



327
328
329
# File 'lib/innodb/data_type.rb', line 327

def name
  @name
end

#widthObject (readonly)

Returns the value of attribute width.



327
328
329
# File 'lib/innodb/data_type.rb', line 327

def width
  @width
end

Instance Method Details

#read(c) ⇒ Object



334
335
336
# File 'lib/innodb/data_type.rb', line 334

def read(c)
  c.name("transaction_id") { c.get_uint48 }
end