Package Pyblio :: Package Stores :: Package bsddbstore
[hide private]
[frames] | no frames]

Package bsddbstore

source code

Store implementation on top of Berkeley DB (>= 4.1)

This store is suitable for large databases, or for cases where the startup time is more important.

Classes [hide private]
  RSDB
Virtual result set that loops over the full database
  ResultSetStore
  _TxnEnv
I pretend to be a DBEnv, with overloadable txn management functions.
  _NoTxnEnv
I pretend to be a DBEnv, with overloadable txn management functions.
  Database
A Pyblio database stored in a Berkeley DB engine
Functions [hide private]
 
_numver(txt) source code
 
_checkver(module) source code
 
_idxadd(_idx, id, words, txn)
Mark id as matching all the words.
source code
 
_idxdel(_idx, id, txn)
Remove any secondary index belonging to the entry
source code
 
dbdestroy(path, nobackup=False) source code
 
dbcreate(path, schema, args={}) source code
 
dbopen(path, args={}) source code
 
dbimport(target, source, args={}) source code
Variables [hide private]
  log = logging.getLogger('pyblio.stores.bsddb')
  _REQUIRED = (4, 3, 0, 0, 0)
  _units = {'G': 1073741824, 'M': 1048576, 'k': 1024}
  description = 'Berkeley DB storage'
  msg = <exceptions.ImportError instance at 0x862ceec>