Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
chainbase_fixture.hpp
Go to the documentation of this file.
2#include <fc/filesystem.hpp>
3
4#include <memory>
5
6namespace sysio { namespace testing {
7
13template<uint64_t MAX_SIZE>
16 : _tempdir()
17 , _db(std::make_unique<chainbase::database>(_tempdir.path(), chainbase::database::read_write, MAX_SIZE))
18 {
19 }
20
22 {
23 _db.reset();
25 }
26
28 std::unique_ptr<chainbase::database> _db;
29};
30
31} } // sysio::testing
wraps boost::filesystem::path to provide platform independent path manipulation.
@ read_write
Definition name.hpp:106
std::unique_ptr< chainbase::database > _db