Bitcoin Core 31.99.0
P2P Digital Currency
Public Member Functions | List of all members
wallet::MockableSQLiteBatch Class Reference

#include <util.h>

Inheritance diagram for wallet::MockableSQLiteBatch:
[legend]
Collaboration diagram for wallet::MockableSQLiteBatch:
[legend]

Public Member Functions

 SQLiteBatch (SQLiteDatabase &database)
 
bool WriteKey (DataStream &&key, DataStream &&value, bool overwrite=true) 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
 

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 53 of file util.h.

Member Function Documentation

◆ SQLiteBatch()

wallet::SQLiteBatch::SQLiteBatch ( SQLiteDatabase database)
explicit

Definition at line 86 of file sqlite.cpp.

Here is the call graph for this function:

◆ WriteKey()

bool wallet::SQLiteBatch::WriteKey ( DataStream &&  key,
DataStream &&  value,
bool  overwrite = true 
)
overridevirtual

Reimplemented from wallet::SQLiteBatch.

Definition at line 80 of file sqlite.cpp.

Here is the caller graph for this function:

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