memgraph/tests/integration/hardcoded_query/template
Dominik Gleich 1946ab6e07 Update template.
Summary: Delete old implementations. Update template

Reviewers: buda

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D72
2017-02-27 14:12:21 +01:00

26 lines
517 B
Plaintext

#include <iostream>
#include <string>
#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 TypedValueStore<> &args,
Stream &stream) {
db_accessor.transaction_.commit();
return true;
}
~CPUPlan() {}
};
extern "C" PlanInterface<Stream> *produce() { return new CPUPlan(); }
extern "C" void destruct(PlanInterface<Stream> *p) { delete p; }