Bitcoin ABC 0.30.5
P2P Digital Currency
|
RAII class that provides access to a WalletDatabase. More...
#include <sqlite.h>
Public Member Functions | |
SQLiteBatch (SQLiteDatabase &database) | |
~SQLiteBatch () override | |
void | Flush () override |
No-op. More... | |
void | Close () override |
bool | StartCursor () override |
bool | ReadAtCursor (CDataStream &key, CDataStream &value, bool &complete) override |
void | CloseCursor () override |
bool | TxnBegin () override |
bool | TxnCommit () override |
bool | TxnAbort () override |
Public Member Functions inherited from DatabaseBatch | |
DatabaseBatch () | |
virtual | ~DatabaseBatch () |
DatabaseBatch (const DatabaseBatch &)=delete | |
DatabaseBatch & | operator= (const DatabaseBatch &)=delete |
virtual void | Flush ()=0 |
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 | StartCursor ()=0 |
virtual bool | ReadAtCursor (CDataStream &ssKey, CDataStream &ssValue, bool &complete)=0 |
virtual void | CloseCursor ()=0 |
virtual bool | TxnBegin ()=0 |
virtual bool | TxnCommit ()=0 |
virtual bool | TxnAbort ()=0 |
Private Member Functions | |
void | SetupSQLStatements () |
bool | ReadKey (CDataStream &&key, CDataStream &value) override |
bool | WriteKey (CDataStream &&key, CDataStream &&value, bool overwrite=true) override |
bool | EraseKey (CDataStream &&key) override |
bool | HasKey (CDataStream &&key) override |
Private Attributes | |
SQLiteDatabase & | m_database |
bool | m_cursor_init = false |
sqlite3_stmt * | m_read_stmt {nullptr} |
sqlite3_stmt * | m_insert_stmt {nullptr} |
sqlite3_stmt * | m_overwrite_stmt {nullptr} |
sqlite3_stmt * | m_delete_stmt {nullptr} |
sqlite3_stmt * | m_cursor_stmt {nullptr} |
RAII class that provides access to a WalletDatabase.
|
explicit |
|
inlineoverride |
|
overridevirtual |
Implements DatabaseBatch.
Definition at line 340 of file sqlite.cpp.
|
overridevirtual |
Implements DatabaseBatch.
Definition at line 561 of file sqlite.cpp.
|
overrideprivatevirtual |
Implements DatabaseBatch.
Definition at line 472 of file sqlite.cpp.
|
inlineoverridevirtual |
|
overrideprivatevirtual |
Implements DatabaseBatch.
Definition at line 500 of file sqlite.cpp.
|
overridevirtual |
Implements DatabaseBatch.
Definition at line 531 of file sqlite.cpp.
|
overrideprivatevirtual |
Implements DatabaseBatch.
Definition at line 391 of file sqlite.cpp.
|
private |
|
overridevirtual |
Implements DatabaseBatch.
Definition at line 522 of file sqlite.cpp.
|
overridevirtual |
Implements DatabaseBatch.
Definition at line 590 of file sqlite.cpp.
|
overridevirtual |
Implements DatabaseBatch.
Definition at line 566 of file sqlite.cpp.
|
overridevirtual |
Implements DatabaseBatch.
Definition at line 578 of file sqlite.cpp.
|
overrideprivatevirtual |
Implements DatabaseBatch.
Definition at line 428 of file sqlite.cpp.
|
private |
|
private |