usql update

This commit is contained in:
2021-07-27 18:07:20 +02:00
parent 513c8da358
commit 281f7d8700
14 changed files with 290 additions and 169 deletions

View File

@@ -4,6 +4,7 @@
#include "row.h"
#include <vector>
#include <list>
namespace usql {
@@ -16,15 +17,22 @@ namespace usql {
int columns_count() const { return m_col_defs.size(); };
Row createEmptyRow(); // TODO this means unnecessary copying
void addRow(const Row &row);
void addCopyOfRow(const Row &row);
Row create_empty_row(); // TODO this means unnecessary copying
void add_row(const Row &row);
void add_copy_of_row(const Row &row);
void validate_column(const ColDefNode *col_def, ValueNode *col_val);
void validate_column(const ColDefNode *col_def, ColValue *col_val);
void validate_row(const Row &row);
std::string csv_string();
int load_csv_string(const std::string &content);
void print();
std::string m_name;
std::vector<ColDefNode> m_col_defs;
std::vector<Row> m_rows;
std::list<Row> m_rows;
};
}