23 lines
317 B
C++
23 lines
317 B
C++
#pragma once
|
|
|
|
#include "storage/graph.hpp"
|
|
#include "transactions/engine.hpp"
|
|
|
|
class Db
|
|
{
|
|
public:
|
|
using sptr = std::shared_ptr<Db>;
|
|
|
|
Db();
|
|
Db(const std::string &name);
|
|
Db(const Db &db) = delete;
|
|
|
|
Graph graph;
|
|
tx::Engine tx_engine;
|
|
|
|
std::string &name();
|
|
|
|
private:
|
|
std::string name_;
|
|
};
|