Method: MDBX::Database#snapshot
- Defined in:
- lib/mdbx/database.rb
#snapshot(&block) ⇒ Object
Open a new mdbx read only snapshot. In block form, the snapshot is automatically closed when the block ends.
200 201 202 |
# File 'lib/mdbx/database.rb', line 200 def snapshot( &block ) self.transaction( commit: false, &block ) end |