usql/executor.h

26 lines
429 B
C++

#pragma once
#include "parser.h"
#include "table.h"
#include <string>
class Executor {
private:
public:
Executor();
bool execute(Node& node);
private:
bool execute_create_table(CreateTableNode& node);
bool execute_insert_into_table(InsertIntoTableNode& node);
bool execute_select(SelectFromTableNode& node);
Table* find_table(const std::string name);
private:
std::vector<Table> m_tables;
};