added new database

This commit is contained in:
2025-11-16 17:03:18 +01:00
parent dd56a8d57e
commit d1c95d2b8b
10 changed files with 77 additions and 43 deletions

View File

@@ -17,7 +17,7 @@ class Database {
typedef std::vector<std::variant<int64_t, std::string>> QueryData;
public:
static constexpr std::string dbFile = "app.db";
static constexpr std::string dbFile = "test.db";
Database();
~Database();
@@ -30,6 +30,8 @@ public:
std::set<std::string> getStrSet(const std::string& sql);
static std::string currentTime();
template <typename T>
std::optional<T> getSqlData(sqlite3_stmt* stmt, int i)
{