Backends
BaseDB
- class eth.db.backends.base.BaseDB(*args, **kwds)
This is an abstract key/value lookup with all
bytes
values, with some convenience methods for databases. As much as possible, you can use a DB as if it were adict
.Notable exceptions are that you cannot iterate through all values or get the length. (Unless a subclass explicitly enables it).
All subclasses must implement these methods: __init__, __getitem__, __setitem__, __delitem__
Subclasses may optionally implement an _exists method that is type-checked for key and value.