diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-05-26 20:53:05 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-10-14 11:27:40 -0400 |
commit | ca8b7e04ab89f99075b093fa248919fd10acbdf7 (patch) | |
tree | 26a0d07f1b1d139ba8f0dd119cd33d5637ba844f /src/wallet/sqlite.cpp | |
parent | 7577b6e1c88a1a7b45ecf5c7f1735bae6f5a82bf (diff) | |
download | bitcoin-ca8b7e04ab89f99075b093fa248919fd10acbdf7.tar.xz |
Implement SQLiteDatabaseVersion
Diffstat (limited to 'src/wallet/sqlite.cpp')
-rw-r--r-- | src/wallet/sqlite.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/sqlite.cpp b/src/wallet/sqlite.cpp index 0ea1317795..c406269cab 100644 --- a/src/wallet/sqlite.cpp +++ b/src/wallet/sqlite.cpp @@ -9,6 +9,7 @@ #include <util/translation.h> #include <wallet/db.h> +#include <sqlite3.h> #include <stdint.h> static const char* const DATABASE_FILENAME = "wallet.dat"; @@ -107,3 +108,8 @@ std::unique_ptr<SQLiteDatabase> MakeSQLiteDatabase(const fs::path& path, const D { return MakeUnique<SQLiteDatabase>(path, path / DATABASE_FILENAME); } + +std::string SQLiteDatabaseVersion() +{ + return std::string(sqlite3_libversion()); +} |