csv parsing a bit simplified

This commit is contained in:
vaclavt
2022-01-11 23:34:49 +01:00
parent 5c3ac683d8
commit 3a660c1783
2 changed files with 30 additions and 50 deletions

View File

@@ -26,9 +26,9 @@ namespace usql {
public:
explicit CsvReader(bool skip_hdr = true, char field_sep = ',', char quote_ch = '"', char line_sep = '\r', char line_sep2 = '\n');
int parseCSV2(const std::string &csvSource, std::vector<ColDefNode> &cols_def, Table& table);
size_t parseCSVString(const std::string &csvSource, std::vector<ColDefNode> &cols_def, Table& table);
int parseCSV(const std::string &filename, std::vector<ColDefNode> &cols_def, Table& table);
size_t parseCSVFile(const std::string &filename, std::vector<ColDefNode> &cols_def, Table& table);
};