projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix for restore.pl.
[cumulus.git]
/
localdb.h
diff --git
a/localdb.h
b/localdb.h
index
8a45e0e
..
3a88870
100644
(file)
--- a/
localdb.h
+++ b/
localdb.h
@@
-21,11
+21,14
@@
class LocalDb {
public:
class LocalDb {
public:
- void Open(const char *path);
+ void Open(const char *path
, const char *snapshot_name
);
void Close();
void StoreObject(const ObjectReference& ref,
const std::string &checksum, int64_t size);
void Close();
void StoreObject(const ObjectReference& ref,
const std::string &checksum, int64_t size);
+ ObjectReference FindObject(const std::string &checksum, int64_t size);
+ void UseObject(const ObjectReference& ref);
private:
private:
+ std::string snapshot;
sqlite3 *db;
};
sqlite3 *db;
};