()
| 120 | } |
| 121 | |
| 122 | func (it *Iterator) Value() ([]byte, error) { |
| 123 | if !it.valid { |
| 124 | return nil, ErrKeyNotFound |
| 125 | } |
| 126 | return it.tx.db.getValueByRecord(it.currentItem.Record) |
| 127 | } |
| 128 | |
| 129 | // Item returns the current item (key + record) if valid |
| 130 | // This is useful for advanced use cases that need direct access to the record |