5 #ifndef STORAGE_LEVELDB_INCLUDE_DB_H_ 6 #define STORAGE_LEVELDB_INCLUDE_DB_H_ 52 const std::string& name,
63 const Slice& value) = 0;
84 const Slice& key, std::string* value) = 0;
98 virtual const Snapshot* GetSnapshot() = 0;
102 virtual void ReleaseSnapshot(
const Snapshot* snapshot) = 0;
120 virtual bool GetProperty(
const Slice& property, std::string* value) = 0;
130 virtual void GetApproximateSizes(
const Range* range,
int n,
131 uint64_t* sizes) = 0;
143 virtual void CompactRange(
const Slice* begin,
const Slice* end) = 0;
148 void operator=(
const DB&);
163 #endif // STORAGE_LEVELDB_INCLUDE_DB_H_
Status RepairDB(const std::string &dbname, const Options &options)
Status DestroyDB(const std::string &dbname, const Options &options)
Range(const Slice &s, const Slice &l)
static const int kMinorVersion
static const int kMajorVersion