21788d003a
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
34 lines
512 B
Plaintext
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;
|
|
}
|