57f1b40d8d
Summary: Modification to MVCC - CHECK! Refactor transaction_read Add automatic commit/abort functionality to graph_db_accessor. Fix failing test in graph_db_accessor. Reviewers: buda, dtomicevic, florijan Reviewed By: buda, florijan Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D87
27 lines
552 B
Plaintext
27 lines
552 B
Plaintext
#include <iostream>
|
|
#include <string>
|
|
|
|
#include "query/backend/cpp/typed_value.hpp"
|
|
#include "query/plan_interface.hpp"
|
|
#include "using.hpp"
|
|
|
|
using std::cout;
|
|
using std::endl;
|
|
|
|
// Query:
|
|
|
|
class CPUPlan : public PlanInterface<Stream> {
|
|
public:
|
|
bool run(GraphDbAccessor &db_accessor, const PropertyValueStore<> &args,
|
|
Stream &stream) {
|
|
db_accessor.commit();
|
|
return true;
|
|
}
|
|
|
|
~CPUPlan() {}
|
|
};
|
|
|
|
extern "C" PlanInterface<Stream> *produce() { return new CPUPlan(); }
|
|
|
|
extern "C" void destruct(PlanInterface<Stream> *p) { delete p; }
|