forked from blue/lmdbal
methods to bulk modify the storage, some transaction code hardening, operators to serialize std containers
This commit is contained in:
parent
6ae32e38b6
commit
a79dae8fd0
8 changed files with 365 additions and 14 deletions
4
cache.h
4
cache.h
|
@ -45,8 +45,12 @@ public:
|
|||
virtual bool checkRecord(const K& key) const override;
|
||||
virtual V getRecord(const K& key) const override;
|
||||
virtual uint32_t count() const override;
|
||||
|
||||
using DataBase::Table<K, V>::drop;
|
||||
virtual int drop(MDB_txn * transaction) override;
|
||||
virtual std::map<K, V> readAll() const override;
|
||||
virtual void replaceAll(const std::map<K, V>& data) override;
|
||||
virtual uint32_t addRecords(const std::map<K, V>& data, bool overwrite = false) override;
|
||||
|
||||
protected:
|
||||
Mode* mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue