X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=localdb.h;h=3a888707bbf94827c1b7e0cb17665e554a9da4bb;hb=ac33ae99de4a6aa9cfaca2f7fd6746758264758e;hp=8a45e0eee9c586ed5bbbd3d0b58530741875dd61;hpb=ed5a047c1b8a8f5c43b0192e8e774b91497c9706;p=cumulus.git diff --git a/localdb.h b/localdb.h index 8a45e0e..3a88870 100644 --- a/localdb.h +++ b/localdb.h @@ -21,11 +21,14 @@ 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); + ObjectReference FindObject(const std::string &checksum, int64_t size); + void UseObject(const ObjectReference& ref); private: + std::string snapshot; sqlite3 *db; };