Class: LevelDB::Snapshot
- Inherits:
-
Object
- Object
- LevelDB::Snapshot
- Defined in:
- lib/leveldb/snapshot.rb
Instance Method Summary collapse
-
#initialize(db, read_opts) ⇒ Snapshot
constructor
A new instance of Snapshot.
- #inspect ⇒ Object (also: #to_s)
- #reset! ⇒ Object
- #set! ⇒ Object
Constructor Details
Instance Method Details
#inspect ⇒ Object Also known as: to_s
19 20 21 |
# File 'lib/leveldb/snapshot.rb', line 19 def inspect "#<LevelDB::Snapshot:#{'0x%x' % object_id}>" end |
#reset! ⇒ Object
15 16 17 |
# File 'lib/leveldb/snapshot.rb', line 15 def reset! C.(@_read_opts, nil) end |
#set! ⇒ Object
11 12 13 |
# File 'lib/leveldb/snapshot.rb', line 11 def set! C.(@_read_opts, @_snap) end |