Atomic

AtomicDB

class eth.db.atomic.AtomicDB(wrapped_db: eth.abc.DatabaseAPI = None)
atomic_batch() → Iterator[eth.abc.AtomicWriteBatchAPI]

Return a ContextManager to write an atomic batch to the database.

class eth.db.atomic.AtomicDBWriteBatch(write_target_db: eth.abc.DatabaseAPI)

This is returned by a BaseAtomicDB during an atomic_batch, to provide a temporary view of the database, before commit.