class CheckBerkeleyDB
Public Instance Methods
test_bdb()
click to toggle source
# File vendor/qwik/lib/qwik/db-berkeley.rb, line 293 def test_bdb return if $0 != __FILE__ # Only for separated test. path = 'test.db'.path path.unlink if path.exist? options = BDB::CREATE | BDB::EXCL # Do not over write. db = BDB::Hash.open(path.to_s, nil, options) db.put('1', 't') ok_eq('t', db.get('1')) db.close path.unlink if path.exist? end