 |
Ethereum
PoC-8
The C++ Implementation of Ethereum
|
Go to the documentation of this file.
22 #include <boost/filesystem.hpp>
23 #include <leveldb/db.h>
24 #include <leveldb/write_batch.h>
37 explicit LevelDB(boost::filesystem::path
const& _path,
48 void commit(std::unique_ptr<WriteBatchFace> _batch)
override;
53 std::unique_ptr<leveldb::DB> m_db;
54 leveldb::ReadOptions
const m_readOptions;
55 leveldb::WriteOptions
const m_writeOptions;
static leveldb::Options defaultDBOptions()
void insert(Slice _key, Slice _value) override
LevelDB(boost::filesystem::path const &_path, leveldb::ReadOptions _readOptions=defaultReadOptions(), leveldb::WriteOptions _writeOptions=defaultWriteOptions(), leveldb::Options _dbOptions=defaultDBOptions())
bool exists(Slice _key) const override
static leveldb::ReadOptions defaultReadOptions()
void kill(Slice _key) override
void commit(std::unique_ptr< WriteBatchFace > _batch) override
std::string lookup(Slice _key) const override
std::unique_ptr< WriteBatchFace > createWriteBatch() const override
void forEach(std::function< bool(Slice, Slice)> _f) const override
static leveldb::WriteOptions defaultWriteOptions()