memgraph/poc/isolation/isolated.hpp
Kruno Tomola Fabro 9469d09c57 Poc example works.
2016-08-26 12:21:42 +01:00

18 lines
272 B
C++

// This is the file of isolated code. It has access only to header.hpp
#include "isolation/header.hpp"
namespace sha
{
int do_something(Db &db)
{
auto &name = db.get_name("name");
auto acc = db.access();
auto ret = acc.get_prop(name);
return ret;
}
}