ruby-mdbx/.pryrc
mahlon@martini.nu 81ee69295c Checkpoint.
- Fix a couple of edge cases while switching between collections.
  - Raise error if attempting to switch collections mid-transaction.
  - Add logic for re-entrancy with long-running transactions.
  - Revert to the prior collection if passing a block to #collection.
  - Add a predicate to tell if you're currently within a long-running transaction.
  - Add separate commit/rollback to long-running transactions.

FossilOrigin-Name: 711239e6fc2f25479a26fb54805da1e5db792f97f28a8b5724e0b38eb11cdb07
2021-01-25 00:36:40 +00:00

15 lines
310 B
Ruby

# -*- ruby -*-
# vim: set nosta noet ts=4 sw=4 ft=ruby:
# encoding: utf-8
$LOAD_PATH.unshift( 'lib' )
begin
require 'mdbx'
rescue Exception => e
$stderr.puts "Ack! Libraries failed to load: #{e.message}\n\t" +
e.backtrace.join( "\n\t" )
end
db = MDBX::Database.open( 'tmp/testdb', max_collections: 5 )