This commit is contained in:
Your Name
2025-05-03 09:39:08 +12:00
parent 66cfde013c
commit 16754a48d4
2 changed files with 238 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ class dbEntry {
class Database {
public:
static const int CURRENT_VERSION = 1;
Database(const std::filesystem::path& path);
~Database();
bool insert(const dbEntry& entry);
@@ -27,6 +29,11 @@ class Database {
private:
std::filesystem::path path_;
sqlite3* db_;
bool createVersionTable();
bool getVersion(int& version);
bool setVersion(int version);
bool migrate(int from_version, int to_version);
};
} // namespace simple_object_storage