From 3b169d4838dd30137c0cbe006f4f967f2000f300 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Tue, 2 Feb 2010 18:12:11 +0100 Subject: [PATCH] RDONLY --- lib/sbdb.rb | 2 ++ lib/sbdb/db.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/sbdb.rb b/lib/sbdb.rb index cc59366..85e1628 100644 --- a/lib/sbdb.rb +++ b/lib/sbdb.rb @@ -6,6 +6,8 @@ require 'sbdb/cursor' module SBDB CREATE = Bdb::DB_CREATE AUTO_COMMIT = Bdb::DB_AUTO_COMMIT + RDONLY = Bdb::DB_RDONLY + READONLY = RDONLY def btree( *p) Btree.new *p end def hash( *p) Hash.new *p end diff --git a/lib/sbdb/db.rb b/lib/sbdb/db.rb index f060815..b52963f 100644 --- a/lib/sbdb/db.rb +++ b/lib/sbdb/db.rb @@ -8,6 +8,7 @@ module SBDB HASH = Bdb::Db::HASH QUEUE = Bdb::Db::QUEUE ARRAY = RECNO = Bdb::Db::RECNO + RDONLY = READLONY = Bdb::DB_RDONLY attr_reader :home include Enumerable