Summary: Removed old encoder. Changed namespace from bolt to communication::bolt. Removed old include from new encoder. Added an empty message success to encoder. Changed order in communication::Server. Changed bolt session to use new encoder. Merge remote-tracking branch 'origin/dev' into mg_hardcoded_queries Fixed PrintRecordStream. Reviewers: buda, dgleich Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D158
31 lines
674 B
Plaintext
31 lines
674 B
Plaintext
#include <iostream>
|
|
#include <string>
|
|
|
|
#include "data_structures/bitset/static_bitset.hpp"
|
|
#include "communication/bolt/v1/encoder/result_stream.hpp"
|
|
#include "io/network/socket.hpp"
|
|
#include "query/backend/cpp/typed_value.hpp"
|
|
#include "query/plan_interface.hpp"
|
|
|
|
using std::cout;
|
|
using std::endl;
|
|
|
|
// Query: {{query}}
|
|
|
|
class {{class_name}} : public PlanInterface<{{stream}}> {
|
|
public:
|
|
bool run(Db &db, const PlanArgsT &args, {{stream}} &stream) override {
|
|
{{code}}
|
|
}
|
|
|
|
~{{class_name}}() {}
|
|
};
|
|
|
|
extern "C" PlanInterface<{{stream}}>* produce() {
|
|
return new {{class_name}}();
|
|
}
|
|
|
|
extern "C" void destruct(PlanInterface<{{stream}}>* p) {
|
|
delete p;
|
|
}
|