Bitcoin Core 28.99.0
P2P Digital Currency
|
RAII class that provides access to a DummyDatabase. More...
Public Member Functions | |
void | Flush () override |
void | Close () override |
std::unique_ptr< DatabaseCursor > | GetNewCursor () override |
std::unique_ptr< DatabaseCursor > | GetNewPrefixCursor (Span< const std::byte > prefix) override |
bool | TxnBegin () override |
bool | TxnCommit () override |
bool | TxnAbort () override |
bool | HasActiveTxn () override |
Public Member Functions inherited from wallet::DatabaseBatch | |
DatabaseBatch ()=default | |
virtual | ~DatabaseBatch ()=default |
DatabaseBatch (const DatabaseBatch &)=delete | |
DatabaseBatch & | operator= (const DatabaseBatch &)=delete |
virtual void | Flush ()=0 |
virtual void | Close ()=0 |
template<typename K , typename T > | |
bool | Read (const K &key, T &value) |
template<typename K , typename T > | |
bool | Write (const K &key, const T &value, bool fOverwrite=true) |
template<typename K > | |
bool | Erase (const K &key) |
template<typename K > | |
bool | Exists (const K &key) |
virtual bool | ErasePrefix (Span< const std::byte > prefix)=0 |
virtual std::unique_ptr< DatabaseCursor > | GetNewCursor ()=0 |
virtual std::unique_ptr< DatabaseCursor > | GetNewPrefixCursor (Span< const std::byte > prefix)=0 |
virtual bool | TxnBegin ()=0 |
virtual bool | TxnCommit ()=0 |
virtual bool | TxnAbort ()=0 |
virtual bool | HasActiveTxn ()=0 |
Private Member Functions | |
bool | ReadKey (DataStream &&key, DataStream &value) override |
bool | WriteKey (DataStream &&key, DataStream &&value, bool overwrite=true) override |
bool | EraseKey (DataStream &&key) override |
bool | HasKey (DataStream &&key) override |
bool | ErasePrefix (Span< const std::byte > prefix) override |
RAII class that provides access to a DummyDatabase.
Never fails.
Definition at line 29 of file salvage.cpp.
|
inlineoverridevirtual |
Implements wallet::DatabaseBatch.
Definition at line 40 of file salvage.cpp.
|
inlineoverrideprivatevirtual |
Implements wallet::DatabaseBatch.
Definition at line 34 of file salvage.cpp.
|
inlineoverrideprivatevirtual |
Implements wallet::DatabaseBatch.
Definition at line 36 of file salvage.cpp.
|
inlineoverridevirtual |
Implements wallet::DatabaseBatch.
Definition at line 39 of file salvage.cpp.
|
inlineoverridevirtual |
Implements wallet::DatabaseBatch.
Definition at line 42 of file salvage.cpp.
|
inlineoverridevirtual |
Implements wallet::DatabaseBatch.
Definition at line 43 of file salvage.cpp.
|
inlineoverridevirtual |
Implements wallet::DatabaseBatch.
Definition at line 47 of file salvage.cpp.
|
inlineoverrideprivatevirtual |
Implements wallet::DatabaseBatch.
Definition at line 35 of file salvage.cpp.
|
inlineoverrideprivatevirtual |
Implements wallet::DatabaseBatch.
Definition at line 32 of file salvage.cpp.
|
inlineoverridevirtual |
Implements wallet::DatabaseBatch.
Definition at line 46 of file salvage.cpp.
|
inlineoverridevirtual |
Implements wallet::DatabaseBatch.
Definition at line 44 of file salvage.cpp.
|
inlineoverridevirtual |
Implements wallet::DatabaseBatch.
Definition at line 45 of file salvage.cpp.
|
inlineoverrideprivatevirtual |
Implements wallet::DatabaseBatch.
Definition at line 33 of file salvage.cpp.