memgraph/src/query_engine/program_executor.hpp

25 lines
406 B
C++
Raw Normal View History

#pragma once
#include <string>
#include "database/db.hpp"
2016-02-26 14:45:43 +08:00
#include "query_engine/debug.hpp"
#include "query_program.hpp"
#include "utils/log/logger.hpp"
// preparations before execution
// execution
// postprocess the results
class ProgramExecutor
{
public:
auto execute(QueryProgram &program)
{
return program.code->run(db, program.stripped.arguments);
}
public:
Db db;
};