1#pragma once
2
3#include "duckdb/common/string_util.hpp"
4#include "duckdb.hpp"
5
6namespace duckdb {
7
8bool CHECK_COLUMN(QueryResult &result, size_t column_number, vector<duckdb::Value> values);
9bool CHECK_COLUMN(unique_ptr<duckdb::QueryResult> &result, size_t column_number, vector<duckdb::Value> values);
10bool CHECK_COLUMN(unique_ptr<duckdb::MaterializedQueryResult> &result, size_t column_number,
11 vector<duckdb::Value> values);
12
13string compare_csv(duckdb::QueryResult &result, string csv, bool header = false);
14
15bool parse_datachunk(string csv, DataChunk &result, vector<SQLType> sql_types, bool has_header);
16
17//! Compares the result of a pipe-delimited CSV with the given DataChunk
18//! Returns true if they are equal, and stores an error_message otherwise
19bool compare_result(string csv, ChunkCollection &collection, vector<SQLType> sql_types, bool has_header,
20 string &error_message);
21
22} // namespace duckdb
23