#include "executor.h" #include "exception.h" Executor::Executor() { // TODO init database } bool Executor::execute(Node& node) { switch (node.node_type) { case NodeType::create_table: return execute_create_table(static_cast(node)); case NodeType::select_from: return execute_select(node); default: // TODO error message return false; } } bool Executor::execute_create_table(CreateTableNode& node) { return false; } bool Executor::execute_select(Node& node) { return false; }