Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Private Member Functions | List of all members
wallet::DummyBatch Class Reference

RAII class that provides access to a DummyDatabase. More...

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

Public Member Functions

void Flush () override
 
void Close () override
 
std::unique_ptr< DatabaseCursorGetNewCursor () override
 
std::unique_ptr< DatabaseCursorGetNewPrefixCursor (Span< const std::byte > prefix) override
 
bool TxnBegin () override
 
bool TxnCommit () override
 
bool TxnAbort () override
 
- Public Member Functions inherited from wallet::DatabaseBatch
 DatabaseBatch ()
 
virtual ~DatabaseBatch ()
 
 DatabaseBatch (const DatabaseBatch &)=delete
 
DatabaseBatchoperator= (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)
 

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
 

Detailed Description

RAII class that provides access to a DummyDatabase.

Never fails.

Definition at line 29 of file salvage.cpp.

Member Function Documentation

◆ Close()

void wallet::DummyBatch::Close ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 40 of file salvage.cpp.

◆ EraseKey()

bool wallet::DummyBatch::EraseKey ( DataStream &&  key)
inlineoverrideprivatevirtual

Implements wallet::DatabaseBatch.

Definition at line 34 of file salvage.cpp.

◆ ErasePrefix()

bool wallet::DummyBatch::ErasePrefix ( Span< const std::byte >  prefix)
inlineoverrideprivatevirtual

Implements wallet::DatabaseBatch.

Definition at line 36 of file salvage.cpp.

◆ Flush()

void wallet::DummyBatch::Flush ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 39 of file salvage.cpp.

◆ GetNewCursor()

std::unique_ptr<DatabaseCursor> wallet::DummyBatch::GetNewCursor ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 42 of file salvage.cpp.

Here is the caller graph for this function:

◆ GetNewPrefixCursor()

std::unique_ptr<DatabaseCursor> wallet::DummyBatch::GetNewPrefixCursor ( Span< const std::byte >  prefix)
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 43 of file salvage.cpp.

Here is the call graph for this function:

◆ HasKey()

bool wallet::DummyBatch::HasKey ( DataStream &&  key)
inlineoverrideprivatevirtual

Implements wallet::DatabaseBatch.

Definition at line 35 of file salvage.cpp.

◆ ReadKey()

bool wallet::DummyBatch::ReadKey ( DataStream &&  key,
DataStream value 
)
inlineoverrideprivatevirtual

Implements wallet::DatabaseBatch.

Definition at line 32 of file salvage.cpp.

◆ TxnAbort()

bool wallet::DummyBatch::TxnAbort ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 46 of file salvage.cpp.

◆ TxnBegin()

bool wallet::DummyBatch::TxnBegin ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 44 of file salvage.cpp.

◆ TxnCommit()

bool wallet::DummyBatch::TxnCommit ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 45 of file salvage.cpp.

◆ WriteKey()

bool wallet::DummyBatch::WriteKey ( DataStream &&  key,
DataStream &&  value,
bool  overwrite = true 
)
inlineoverrideprivatevirtual

Implements wallet::DatabaseBatch.

Definition at line 33 of file salvage.cpp.


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