Bug fixing
This commit is contained in:
@@ -19,7 +19,7 @@ class dbEntry {
|
||||
|
||||
class Database {
|
||||
public:
|
||||
static const int CURRENT_VERSION = 2;
|
||||
static const int CURRENT_VERSION = 3;
|
||||
|
||||
Database(const std::filesystem::path& path);
|
||||
~Database();
|
||||
@@ -37,6 +37,11 @@ class Database {
|
||||
bool setVersion(int version);
|
||||
bool migrate(int from_version, int to_version);
|
||||
bool createObjectsTable();
|
||||
|
||||
// New utility functions
|
||||
bool merge_existing_entry(const dbEntry& existing, const dbEntry& new_entry, dbEntry& merged);
|
||||
bool insert_new_entry(const dbEntry& entry);
|
||||
bool handle_tag_conflicts(const dbEntry& entry);
|
||||
};
|
||||
|
||||
} // namespace simple_object_storage
|
||||
|
Reference in New Issue
Block a user