projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Slightly expand the set of characters which are escaped in filenames.
[cumulus.git]
/
localdb.h
diff --git
a/localdb.h
b/localdb.h
index
8a45e0e
..
eb0955d
100644
(file)
--- a/
localdb.h
+++ b/
localdb.h
@@
-21,12
+21,18
@@
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:
sqlite3 *db;
private:
sqlite3 *db;
+ int64_t snapshotid;
+
+ int64_t SegmentToId(const std::string &segment);
+ std::string IdToSegment(int64_t segmentid);
};
#endif // _LBS_LOCALDB_H
};
#endif // _LBS_LOCALDB_H