MCPcopy Create free account
hub / github.com/BlazingDB/blazingsql / read_sql_loop

Method read_sql_loop

engine/src/io/data_parser/sql/MySQLParser.cpp:100–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void mysql_parser::read_sql_loop(void *src,
101 const std::vector<cudf::type_id> &cudf_types,
102 const std::vector<int> &column_indices,
103 std::vector<void*> &host_cols,
104 std::vector<std::vector<cudf::bitmask_type>> &null_masks)
105{
106 int row = 0;
107 auto res = (sql::ResultSet*)src;
108 while (res->next()) {
109 this->parse_sql(src, column_indices, cudf_types, row, host_cols, null_masks);
110 ++row;
111 }
112}
113
114cudf::type_id mysql_parser::get_cudf_type_id(const std::string &sql_column_type) {
115 return parse_mysql_column_type(sql_column_type);

Callers 1

read_sqlMethod · 0.45

Calls 2

nextMethod · 0.80
parse_sqlMethod · 0.80

Tested by

no test coverage detected