a bit of further work

This commit is contained in:
2021-06-30 23:29:09 +02:00
parent 5c7908ac4b
commit b55115f7c3
10 changed files with 309 additions and 56 deletions

21
table.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include "parser.h"
#include <vector>
// TODO make it a class
struct Table {
// public:
Table(const std::string name, const std::vector<ColDefNode> columns);
ColDefNode get_column_def(const std::string col_name);
int columns_count() { return m_col_defs.size(); };
void print();
// private:
std::string m_name;
std::vector<ColDefNode> m_col_defs;
std::vector<std::vector<std::string>> m_rows;
};