2010-01-29 23:53:39 +01:00
|
|
|
require 'bdb'
|
2010-02-02 00:52:25 +01:00
|
|
|
require 'sbdb/environment'
|
|
|
|
require 'sbdb/db'
|
|
|
|
require 'sbdb/cursor'
|
2010-01-29 23:53:39 +01:00
|
|
|
|
|
|
|
module SBDB
|
2010-02-02 00:52:25 +01:00
|
|
|
CREATE = Bdb::DB_CREATE
|
2010-01-29 23:53:39 +01:00
|
|
|
AUTO_COMMIT = Bdb::DB_AUTO_COMMIT
|
|
|
|
|
2010-02-02 00:52:25 +01:00
|
|
|
def btree( *p) Btree.new *p end
|
|
|
|
def hash( *p) Hash.new *p end
|
|
|
|
def recno( *p) Recno.new *p end
|
|
|
|
def queue( *p) Queue.new *p end
|
|
|
|
def unknown( *p) Unknown.new *p end
|
|
|
|
alias open_db unknown
|
2010-01-29 23:53:39 +01:00
|
|
|
end
|