code changes in load
This commit is contained in:
7
table.h
7
table.h
@@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user