ruby-mdbx/.pryrc
mahlon@martini.nu fb6d4fba95 Bugfix: Don't use a ruby string outside of the stack, GC can snag out from under us.
(Thanks Michael!)

FossilOrigin-Name: bbcafda1bc42bf6deb5ac30acf620b0a3e020154e7d82f0140d2118ca29961fb
2021-07-13 23:58:16 +00:00

15 lines
311 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: 50 )