Files
usql/executor.cpp
2021-06-29 19:28:14 +02:00

30 lines
593 B
C++

#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<CreateTableNode &>(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;
}