diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-05-26 20:53:41 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-10-14 11:28:18 -0400 |
commit | 7aa45620e2f2178145a2eca58ccbab3cecff08fb (patch) | |
tree | 1f8c7b2c46c6f3e2d9724611b868183dc5868e9a /src/wallet/sqlite.h | |
parent | 6636a2608a4e5906ee8092d5731595542261e0ad (diff) | |
download | bitcoin-7aa45620e2f2178145a2eca58ccbab3cecff08fb.tar.xz |
Add SetupSQLStatements
Diffstat (limited to 'src/wallet/sqlite.h')
-rw-r--r-- | src/wallet/sqlite.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/sqlite.h b/src/wallet/sqlite.h index 8171cf27d6..4d4dca1d20 100644 --- a/src/wallet/sqlite.h +++ b/src/wallet/sqlite.h @@ -18,6 +18,14 @@ class SQLiteBatch : public DatabaseBatch private: SQLiteDatabase& m_database; + 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}; + + void SetupSQLStatements(); + bool ReadKey(CDataStream&& key, CDataStream& value) override; bool WriteKey(CDataStream&& key, CDataStream&& value, bool overwrite = true) override; bool EraseKey(CDataStream&& key) override; |