#include "leveldb/db.h" #include using namespace std; using namespace leveldb; int main() { DB* db = nullptr; Options op; op.create_if_missing = true; Status status = DB::Open(op, "testdb", &db); assert(status.ok()); db->Put(WriteOptions(), "001", "leveldb"); string s; db->Get(ReadOptions(), "001", &s); cout<Put(WriteOptions(), "002", "world"); string s1; db->Delete(WriteOptions(), "002"); db->Get(ReadOptions(), "002", &s1); cout<