initial commit
This commit is contained in:
29
executor.cpp
Normal file
29
executor.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user