Bitcoin Core 32.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
wallet::FaultInjectingDatabase::Batch Struct Reference
Inheritance diagram for wallet::FaultInjectingDatabase::Batch:
[legend]
Collaboration diagram for wallet::FaultInjectingDatabase::Batch:
[legend]

Public Member Functions

 Batch (FaultInjectingDatabase &database)
 
bool TxnCommit () override
 
bool WriteKey (DataStream &&key, DataStream &&value, bool overwrite=true) override
 
bool EraseKey (DataStream &&key) override
 
- Public Member Functions inherited from wallet::SQLiteBatch
 SQLiteBatch (SQLiteDatabase &database)
 
 ~SQLiteBatch () override
 
void SetExecHandler (std::unique_ptr< SQliteExecHandler > &&handler)
 
void Close () override
 
std::unique_ptr< DatabaseCursorGetNewCursor () override
 
std::unique_ptr< DatabaseCursorGetNewPrefixCursor (std::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
 
DatabaseBatchoperator= (const DatabaseBatch &)=delete
 
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 (std::span< const std::byte > prefix)=0
 
virtual std::unique_ptr< DatabaseCursorGetNewCursor ()=0
 
virtual std::unique_ptr< DatabaseCursorGetNewPrefixCursor (std::span< const std::byte > prefix)=0
 
virtual bool TxnBegin ()=0
 
virtual bool TxnCommit ()=0
 
virtual bool TxnAbort ()=0
 
virtual bool HasActiveTxn ()=0
 

Public Attributes

FaultInjectingDatabasem_owner
 

Additional Inherited Members

- Protected Member Functions inherited from wallet::SQLiteBatch
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 (std::span< const std::byte > prefix) override
 

Detailed Description

Definition at line 122 of file util.h.

Constructor & Destructor Documentation

◆ Batch()

wallet::FaultInjectingDatabase::Batch::Batch ( FaultInjectingDatabase database)
inlineexplicit

Definition at line 123 of file util.h.

Member Function Documentation

◆ EraseKey()

bool wallet::FaultInjectingDatabase::Batch::EraseKey ( DataStream &&  key)
inlineoverridevirtual

Reimplemented from wallet::SQLiteBatch.

Definition at line 137 of file util.h.

Here is the call graph for this function:

◆ TxnCommit()

bool wallet::FaultInjectingDatabase::Batch::TxnCommit ( )
inlineoverridevirtual

Reimplemented from wallet::SQLiteBatch.

Definition at line 125 of file util.h.

Here is the call graph for this function:

◆ WriteKey()

bool wallet::FaultInjectingDatabase::Batch::WriteKey ( DataStream &&  key,
DataStream &&  value,
bool  overwrite = true 
)
inlineoverridevirtual

Reimplemented from wallet::SQLiteBatch.

Definition at line 131 of file util.h.

Here is the call graph for this function:

Member Data Documentation

◆ m_owner

FaultInjectingDatabase& wallet::FaultInjectingDatabase::Batch::m_owner

Definition at line 143 of file util.h.


The documentation for this struct was generated from the following file: