wallet::SQLiteBatch

RAII class that provides access to a WalletDatabase

Synopsis

Declared in <wallet/sqlite.h>

class SQLiteBatch
    : public DatabaseBatch

Base Classes

NameDescription
DatabaseBatchRAII class that provides access to a WalletDatabase

Member Functions

NameDescription
SQLiteBatch [constructor]Construct a batch connected to the given database.
~SQLiteBatch [destructor] [virtual]Destroy the batch, closing it first.
operator= [deleted]Batches are non-copyable.
Close [virtual]Close the batch and finalize its prepared statements.
Erase Erases the record stored under a key.
ErasePrefix [virtual]Erases all records whose key begins with the given prefix.
Exists Returns whether a record exists for a key.
GetNewCursor [virtual]Get a cursor iterating over all records in the database.
GetNewPrefixCursor [virtual]Get a cursor iterating over records whose key starts with a prefix.
HasActiveTxn [virtual]Report whether this batch has started a transaction.
Read Reads the value stored under a key.
SetExecHandler Replace the handler used to execute SQL statements for this batch.
TxnAbort [virtual]Abort the current database transaction.
TxnBegin [virtual]Begin a database transaction.
TxnCommit [virtual]Commit the current database transaction.
Write Writes a value under a key.

Protected Member Functions

NameDescription
EraseKey [virtual]Erase the record stored under a key.
ErasePrefix [virtual]Erase all records whose key starts with a prefix.
HasKey [virtual]Report whether a key exists in the database.
ReadKey [virtual]Read the value stored under a key.
WriteKey [virtual]Write a value under a key.