1 | #pragma once |
2 | |
3 | #include "duckdb/common/string_util.hpp" |
4 | #include "duckdb.hpp" |
5 | |
6 | namespace duckdb { |
7 | |
8 | bool CHECK_COLUMN(QueryResult &result, size_t column_number, vector<duckdb::Value> values); |
9 | bool CHECK_COLUMN(unique_ptr<duckdb::QueryResult> &result, size_t column_number, vector<duckdb::Value> values); |
10 | bool CHECK_COLUMN(unique_ptr<duckdb::MaterializedQueryResult> &result, size_t column_number, |
11 | vector<duckdb::Value> values); |
12 | |
13 | string compare_csv(duckdb::QueryResult &result, string csv, bool = false); |
14 | |
15 | bool parse_datachunk(string csv, DataChunk &result, vector<SQLType> sql_types, bool ); |
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 |
19 | bool compare_result(string csv, ChunkCollection &collection, vector<SQLType> sql_types, bool , |
20 | string &error_message); |
21 | |
22 | } // namespace duckdb |
23 | |