Whee!
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user