initial commit

This commit is contained in:
2021-06-29 19:28:14 +02:00
commit 5c7908ac4b
20 changed files with 913 additions and 0 deletions

29
executor.cpp Normal file
View File

@@ -0,0 +1,29 @@
#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;
}