memgraph/include/storage/edges.hpp
Kruno Tomola Fabro 1849514159 First step in database accessor refactoring done.
It's compiling.
All tests with exception of integration_querys pass
2016-08-12 23:01:39 +01:00

19 lines
457 B
C++

#pragma once
#include "data_structures/concurrent/concurrent_map.hpp"
#include "mvcc/version_list.hpp"
#include "storage/common.hpp"
#include "storage/edge_accessor.hpp"
class Edges
{
public:
Edge::Accessor find(DbTransaction &t, const Id &id);
Edge::Accessor insert(DbTransaction &t, VertexRecord *from,
VertexRecord *to);
private:
ConcurrentMap<uint64_t, EdgeRecord> edges;
AtomicCounter<uint64_t> counter;
};