diff --git a/lib/bdb/database.rb b/lib/bdb/database.rb index 5038cc0..8004cb5 100644 --- a/lib/bdb/database.rb +++ b/lib/bdb/database.rb @@ -58,6 +58,10 @@ class Bdb::Database < Bdb::Base end end + def close_environment + environment.close + end + def count(field, key) with_cursor(db(field)) do |cursor| k, v = cursor.get(Tuple.dump(key), nil, Bdb::DB_SET)