Module: SBDB

Defined in:
lib/sbdb.rb,
lib/sbdb/db.rb,
lib/sbdb/cursor.rb,
lib/sbdb/environment.rb,
lib/sbdb/transaction.rb

Defined Under Namespace

Modules: Arrayisch Classes: Btree, Cursor, DB, Environment, Hash, Queue, Recno, Transaction, Unknown

Constant Summary collapse

CREATE =
Bdb::DB_CREATE
AUTO_COMMIT =
Bdb::DB_AUTO_COMMIT
RDONLY =
Bdb::DB_RDONLY
READONLY =
RDONLY
TYPES =
[]
Array =
Recno
Env =
Environment
TXN =
Transaction

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.raise_barrier(*ps, &e) ⇒ Object



21
22
23
24
25
# File 'lib/sbdb.rb', line 21

def self.raise_barrier *ps, &e
	e.call *ps
rescue Object
	$stderr.puts [$!.class,$!,$!.backtrace].inspect
end

Instance Method Details

#btree(*ps) ⇒ Object



14
# File 'lib/sbdb.rb', line 14

def btree( *ps)   Btree.new *ps   end

#hash(*ps) ⇒ Object



15
# File 'lib/sbdb.rb', line 15

def hash( *ps)    Hash.new *ps    end

#queue(*ps) ⇒ Object



17
# File 'lib/sbdb.rb', line 17

def queue( *ps)   Queue.new *ps   end

#recno(*ps) ⇒ Object



16
# File 'lib/sbdb.rb', line 16

def recno( *ps)   Recno.new *ps   end

#unknown(*ps) ⇒ Object Also known as: open_db



18
# File 'lib/sbdb.rb', line 18

def unknown( *ps) Unknown.new *ps end