Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
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< DatabaseCursor > GetNewCursor () override
std::unique_ptr< DatabaseCursor > GetNewPrefixCursor (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
DatabaseBatch & operator= (const DatabaseBatch &)=delete
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)

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

Member Function Documentation

◆ SQLiteBatch()

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

Implements wallet::DatabaseBatch.

Definition at line 80 of file sqlite.cpp.


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