301941 {
301943 vector<CompressionType> disabled_compression_methods;
301944 for (auto &entry : list) {
301947 if (param.empty()) {
301948 continue;
301949 }
301950 if (param == "none") {
301951 disabled_compression_methods.clear();
301952 break;
301953 }
301954 auto compression_type = EnumUtil::FromString<CompressionType>(param);
301955 switch (compression_type) {
301956 case CompressionType::COMPRESSION_AUTO:
301957 case CompressionType::COMPRESSION_CONSTANT:
301958 case CompressionType::COMPRESSION_EMPTY:
301959 case CompressionType::COMPRESSION_UNCOMPRESSED:
301960 throw InvalidInputException("Compression method %s cannot be disabled", param);
301961 default:
301962 break;
301963 }
301964 disabled_compression_methods.push_back(compression_type);
301965 }
301967}
static DUCKDB_API void Trim(string &str)
Remove the whitespace char in the left and right end of the string.
Definition duckdb.cpp:109372
static DUCKDB_API vector< string > Split(const string &str, char delimiter)
Split the input string based on newline char.
Definition duckdb.cpp:109734
static DUCKDB_API string Lower(const string &str)
Convert a string to lowercase.
Definition duckdb.cpp:109630
DUCKDB_API void SetDisabledCompressionMethods(const vector< CompressionType > &disabled_compression_methods)
Sets the disabled compression methods.
Definition duckdb.cpp:220377