clickhouse-cpp
clickhouse-cpp copied to clipboard
Receiving columns metadata
Columns metadata is sent if only it is a query like "INSERT INTO {TableName} VALUES" when values are sent as separate data. Such queries can be dispatched only by these functions:
/// Intends for insert block of data into a table \p table_name.
void Insert(const std::string& table_name, const Block& block);
void Insert(const std::string& table_name, const std::string& query_id, const Block& block);
The parameter block
has already formed in these functions at the time of the call. Analyzing columns' defaults for changing data seems useless. That's why I just skiped this data.