aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/sqlite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet/sqlite.h')
-rw-r--r--src/wallet/sqlite.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/sqlite.h b/src/wallet/sqlite.h
index b529301771..e56533b7b6 100644
--- a/src/wallet/sqlite.h
+++ b/src/wallet/sqlite.h
@@ -7,6 +7,8 @@
#include <wallet/db.h>
+#include <sqlite3.h>
+
struct bilingual_str;
class SQLiteDatabase;
@@ -23,6 +25,7 @@ private:
public:
explicit SQLiteBatch(SQLiteDatabase& database);
+ ~SQLiteBatch() override { Close(); }
/* No-op. See commeng on SQLiteDatabase::Flush */
void Flush() override {}
@@ -91,6 +94,8 @@ public:
/** Make a SQLiteBatch connected to this database */
std::unique_ptr<DatabaseBatch> MakeBatch(bool flush_on_close = true) override;
+
+ sqlite3* m_db{nullptr};
};
bool ExistsSQLiteDatabase(const fs::path& path);