Bitcoin Core 28.99.0
P2P Digital Currency
|
RAII class that provides access to a WalletDatabase. More...
#include <db.h>
Public Member Functions | |
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 | |
virtual bool | ReadKey (DataStream &&key, DataStream &value)=0 |
virtual bool | WriteKey (DataStream &&key, DataStream &&value, bool overwrite=true)=0 |
virtual bool | EraseKey (DataStream &&key)=0 |
virtual bool | HasKey (DataStream &&key)=0 |
RAII class that provides access to a WalletDatabase.
|
explicitdefault |
|
virtualdefault |
|
delete |
|
pure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
inline |
|
privatepure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
pure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
inline |
|
pure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
pure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
pure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
pure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
privatepure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
delete |
|
inline |
|
privatepure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
pure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
pure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
pure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.
|
inline |
|
privatepure virtual |
Implemented in wallet::BerkeleyBatch, wallet::BerkeleyROBatch, wallet::DummyBatch, wallet::SQLiteBatch, and wallet::MockableBatch.