Class: Innodb::HistoryList
- Inherits:
-
Object
- Object
- Innodb::HistoryList
- Defined in:
- lib/innodb/history_list.rb
Defined Under Namespace
Classes: UndoRecordCursor
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Instance Method Summary collapse
- #each_undo_record(&block) ⇒ Object
-
#initialize(list) ⇒ HistoryList
constructor
Initialize from a provided Innodb::List::History.
- #undo_record_cursor(undo_record = :min, direction = :forward) ⇒ Object
Constructor Details
#initialize(list) ⇒ HistoryList
Initialize from a provided Innodb::List::History.
10 11 12 |
# File 'lib/innodb/history_list.rb', line 10 def initialize(list) @list = list end |
Instance Attribute Details
#list ⇒ Object (readonly)
Returns the value of attribute list.
7 8 9 |
# File 'lib/innodb/history_list.rb', line 7 def list @list end |
Instance Method Details
#each_undo_record(&block) ⇒ Object
96 97 98 99 100 |
# File 'lib/innodb/history_list.rb', line 96 def each_undo_record(&block) return enum_for(:each_undo_record) unless block_given? undo_record_cursor.each_undo_record(&block) end |
#undo_record_cursor(undo_record = :min, direction = :forward) ⇒ Object
92 93 94 |
# File 'lib/innodb/history_list.rb', line 92 def undo_record_cursor(undo_record = :min, direction = :forward) UndoRecordCursor.new(self, undo_record, direction) end |