29 _options.create_if_missing =
true;
30 assert( status.ok() );
32 Poco::Message msg (
"LevelDB",status.ToString(),Poco::Message::PRIO_CRITICAL,__FILE__,__LINE__);
38 if (this->_db !=
nullptr) {
46 status = leveldb::DB::Open( _options,
_dbName, this->&_db );
49 Poco::Message msg (
"LevelDB",status.ToString(),Poco::Message::PRIO_CRITICAL,__FILE__,__LINE__);
58 status = _db->Put(leveldb::WriteOptions(), key, value);
62 Poco::Message msg (
"LevelDB",status.ToString(),Poco::Message::PRIO_CRITICAL,__FILE__,__LINE__);
73 status = _db->Get(leveldb::ReadOptions(), key, &value);
87 status = _db->Delete(leveldb::WriteOptions(), key);
91 Poco::Message msg (
"LevelDB",status.ToString(),Poco::Message::PRIO_CRITICAL,__FILE__,__LINE__);