49 std::unordered_map<std::string, std::string>
toOptionsMap(
const bool& parallel)
const {
50 std::unordered_map<std::string, std::string> result;
51 result[
"parallel"] = parallel ?
"true" :
"false";
53 result[
"header"] =
hasHeader ?
"true" :
"false";
70 static std::string
toCypher(
const std::unordered_map<std::string, std::string>& options) {
71 if (options.empty()) {
74 std::string result =
"";
75 for (
const auto& [key, value] : options) {
76 if (!result.empty()) {
79 result += key +
"=" + value;
81 return "(" + result +
")";
Definition array_utils.h:7
std::string stringFormat(std::string_view format, Args &&... args)
Definition string_format.h:110
std::unordered_map< std::string, T, CaseInsensitiveStringHashFunction, CaseInsensitiveStringEquality > case_insensitive_map_t
Definition case_insensitive_map.h:22
Definition array_utils.h:7
Definition csv_reader_config.h:11
char escapeChar
Definition csv_reader_config.h:13
bool setDelim
Definition csv_reader_config.h:25
static std::string toCypher(const std::unordered_map< std::string, std::string > &options)
Definition csv_reader_config.h:70
bool setQuote
Definition csv_reader_config.h:26
bool setEscape
Definition csv_reader_config.h:24
CSVOption()
Definition csv_reader_config.h:30
std::vector< std::string > nullStrings
Definition csv_reader_config.h:28
bool hasHeader
Definition csv_reader_config.h:16
char quoteChar
Definition csv_reader_config.h:15
bool setHeader
Definition csv_reader_config.h:27
EXPLICIT_COPY_DEFAULT_MOVE(CSVOption)
char delimiter
Definition csv_reader_config.h:14
bool autoDetection
Definition csv_reader_config.h:22
uint64_t skipNum
Definition csv_reader_config.h:17
bool ignoreErrors
Definition csv_reader_config.h:20
std::unordered_map< std::string, std::string > toOptionsMap(const bool ¶llel) const
Definition csv_reader_config.h:49
CSVOption(const CSVOption &other)
Definition csv_reader_config.h:85
uint64_t sampleSize
Definition csv_reader_config.h:18
bool allowUnbracedList
Definition csv_reader_config.h:19
CSVReaderConfig()
Definition csv_reader_config.h:101
CSVOption option
Definition csv_reader_config.h:98
bool parallel
Definition csv_reader_config.h:99
EXPLICIT_COPY_DEFAULT_MOVE(CSVReaderConfig)
static CSVReaderConfig construct(const case_insensitive_map_t< Value > &options)
Definition constants.h:95
static constexpr bool DEFAULT_CSV_AUTO_DETECT
Definition constants.h:123