mirror of
https://github.com/basiliscos/syncspirit.git
synced 2026-06-01 17:47:32 +00:00
25 lines
452 B
C++
25 lines
452 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// SPDX-FileCopyrightText: 2019-2022 Ivan Baidakou
|
|
|
|
#pragma once
|
|
|
|
#include "db/utils.h"
|
|
#include <boost/filesystem.hpp>
|
|
|
|
namespace syncspirit::test {
|
|
|
|
namespace bfs = boost::filesystem;
|
|
namespace db = syncspirit::db;
|
|
|
|
struct env_t {
|
|
MDBX_env *env;
|
|
bfs::path path;
|
|
~env_t();
|
|
};
|
|
|
|
env_t mk_env();
|
|
|
|
db::transaction_t mk_txn(env_t &env, db::transaction_type_t type);
|
|
|
|
} // namespace syncspirit::test
|