Package bsddb :: Module dbshelve :: Class DBShelf
[hide private]
[frames] | no frames]

_ClassType DBShelf

UserDict.DictMixin --+

A shelf to hold pickled objects, built upon a bsddb DB object. It automatically pickles/unpickles data objects going to/from the DB.

Instance Methods [hide private]
__init__(self, dbenv=None)
__getattr__(self, name)
Many methods we can just pass through to the DB object.
__getitem__(self, key)
__setitem__(self, key, value)
__delitem__(self, key)
keys(self, txn=None)
items(self, txn=None)
values(self, txn=None)
__append(self, value, txn=None)
append(self, value, txn=None)
associate(self, secondaryDB, callback, flags=0)
get(self, *args, **kw)
get_both(self, key, value, txn=None, flags=0)
cursor(self, txn=None, flags=0)
put(self, key, value, txn=None, flags=0)
join(self, cursorList, flags=0)

Inherited from UserDict.DictMixin: __cmp__, __contains__, __iter__, __repr__, clear, has_key, iteritems, iterkeys, itervalues, pop, popitem, setdefault, update

Method Details [hide private]

__getattr__(self, name)
(Qualification operator)


Many methods we can just pass through to the DB object. (See below)

(Length operator)

Overrides: UserDict.DictMixin.__len__

items(self, txn=None)

Overrides: UserDict.DictMixin.items

values(self, txn=None)

Overrides: UserDict.DictMixin.values

get(self, *args, **kw)

Overrides: UserDict.DictMixin.get