mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Implement SQLiteDatabaseVersion
This commit is contained in:
parent
7577b6e1c8
commit
ca8b7e04ab
2 changed files with 8 additions and 0 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue