diff options
author | Greg Soltis <gsoltis@google.com> | 2018-01-30 14:36:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-30 14:36:22 -0800 |
commit | 3cbdbf2652202a3473271ed298ff50e5797cce68 (patch) | |
tree | 3b24b8feff76b3f7551bd17ffd8f1caa38c552ad /Firestore/Source/Local/FSTLevelDBQueryCache.h | |
parent | 6474a82fd6e0e10b2cf97c4dc531e837ec97792b (diff) |
Schema migrations for LevelDB (#728)
* Implement schema versions
* Style fixes
* newlines, copyrights, assumptions
* Fix nullability
* Raw ptr -> shared_ptr
* kVersionTableGlobal -> kVersionGlobalTable
* Drop utils, move into static methods
* Drop extra include
* Add a few more comments
* Move version constant into migrations file
* formatting?
* Fix comment
Diffstat (limited to 'Firestore/Source/Local/FSTLevelDBQueryCache.h')
-rw-r--r-- | Firestore/Source/Local/FSTLevelDBQueryCache.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Firestore/Source/Local/FSTLevelDBQueryCache.h b/Firestore/Source/Local/FSTLevelDBQueryCache.h index 6d5cd60..67c6575 100644 --- a/Firestore/Source/Local/FSTLevelDBQueryCache.h +++ b/Firestore/Source/Local/FSTLevelDBQueryCache.h @@ -28,12 +28,20 @@ class DB; @class FSTLocalSerializer; @protocol FSTGarbageCollector; +@class FSTPBTargetGlobal; NS_ASSUME_NONNULL_BEGIN /** Cached Queries backed by LevelDB. */ @interface FSTLevelDBQueryCache : NSObject <FSTQueryCache> +#ifdef __cplusplus +/** + * Retrieves the global singleton metadata row from the given database, if it exists. + */ ++ (nullable FSTPBTargetGlobal *)readTargetMetadataFromDB:(std::shared_ptr<leveldb::DB>)db; +#endif + - (instancetype)init NS_UNAVAILABLE; /** The garbage collector to notify about potential garbage keys. */ |