memgraph/tests/integration/hardcoded_query/template
Marko Budiselic 21788d003a Dressipi CRUD queries are dummy implemented; Fixes T99 and T131
Summary: Dressipi CRUD queries are dummy implemented; Fixes T99 and T131

Test Plan: manual

Reviewers: sale

Subscribers: buda, sale

Maniphest Tasks: T131, T99

Differential Revision: https://memgraph.phacility.com/D9
2016-11-29 04:08:49 +01:00

34 lines
512 B
Plaintext

#include <iostream>
#include <string>
#include "query/util.hpp"
#include "query/i_plan_cpu.hpp"
#include "storage/model/properties/all.hpp"
using std::cout;
using std::endl;
// query:
class CodeCPU : public IPlanCPU<{{stream}}>
{
public:
bool run(Db &db, plan_args_t &args, {{stream}} &stream) override
{
{{code}}
}
~{{class_name}}() {}
};
extern "C" IPlanCPU<{{stream}}>* produce()
{
return new {{class_name}}();
}
extern "C" void destruct(IPlanCPU<{{stream}}>* p)
{
delete p;
}