code changes in load

This commit is contained in:
2021-08-13 10:24:04 +02:00
parent cd92e27270
commit e53d062ff5
10 changed files with 287 additions and 141 deletions

View File

@@ -15,7 +15,7 @@ namespace usql {
ColDefNode get_column_def(const std::string &col_name);
ColDefNode get_column_def(int col_index);
int columns_count() const { return m_col_defs.size(); };
int columns_count() const { return m_col_defs.size(); }; // TODO size_t type?
int rows_count() const { return m_rows.size(); };
Row& create_empty_row();
@@ -28,6 +28,7 @@ namespace usql {
std::string csv_string();
int load_csv_string(const std::string &content);
int load_csv_file(const std::string &filename);
void print();
@@ -37,6 +38,8 @@ namespace usql {
static long string_to_long(const std::string &s) ;
static double string_to_double(const std::string &s) ;
void create_row_from_vector(const std::vector<ColDefNode> &colDefs, const std::vector<std::string> &csv_line);
};
}
}