usql update
This commit is contained in:
16
usql/table.h
16
usql/table.h
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user