Package bsddb :: Class _DBWithCursor
[hide private]
[frames] | no frames]

_ClassType _DBWithCursor

UserDict.DictMixin --+    
                     |    
           _iter_mixin --+
                         |
                        _DBWithCursor

A simple wrapper around DB that makes it look like the bsddbobject in the old module. It uses a cursor as needed to provide DB traversal.

Instance Methods [hide private]
 
__init__(self, db)
 
__del__(self)
 
_checkCursor(self)
 
_closeCursors(self, save=1)
 
_checkOpen(self)
 
isOpen(self)
 
__len__(self)
 
__getitem__(self, key)
 
__setitem__(self, key, value)
 
__delitem__(self, key)
 
close(self)
 
keys(self)
 
has_key(self, key)
 
set_location(self, key)
 
next(self)
 
previous(self)
 
first(self)
 
last(self)
 
sync(self)

Inherited from _iter_mixin: __iter__, iteritems

Inherited from _iter_mixin (private): _gen_cref_cleaner, _make_iter_cursor

Inherited from UserDict.DictMixin: __cmp__, __contains__, __repr__, clear, get, items, iterkeys, itervalues, pop, popitem, setdefault, update, values

Method Details [hide private]

__len__(self)
(Length operator)

 
Overrides: UserDict.DictMixin.__len__

has_key(self, key)

 
Overrides: UserDict.DictMixin.has_key