Class: SBDB::Unknown

Inherits:
DB
  • Object
show all
Defined in:
lib/sbdb/db.rb

Constant Summary

Constants inherited from DB

DB::ARRAY, DB::BTREE, DB::CONSUME, DB::CONSUME_WAIT, DB::HASH, DB::QUEUE, DB::RDONLY, DB::UNKNOWN

Instance Attribute Summary

Attributes inherited from DB

#home, #txn

Class Method Summary collapse

Methods inherited from DB

#[]=, #_txn, #at, #bdb_object, #close, #cursor, #delete, #each, #initialize, #put, #reverse, #sync, #to_hash, #transaction, #truncate

Constructor Details

This class inherits a constructor from SBDB::DB

Class Method Details

.new(file, *ps, &exe) ⇒ Object


115
116
117
118
# File 'lib/sbdb/db.rb', line 115

def self.new file, *ps, &exe
  dbt = super( file, *ps) {|db| db.bdb_object.get_type }
  TYPES[dbt] ? TYPES[dbt].new( file, *ps, &exe) : super( file, *ps, &exe)
end