a bit of further work
This commit is contained in:
21
table.h
Normal file
21
table.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user