MCPcopy Create free account
hub / github.com/ByConity/ByConity / shouldSkipDDLCmd

Method shouldSkipDDLCmd

src/Databases/MySQL/DatabaseCnchMaterializedMySQL.cpp:83–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool DatabaseCnchMaterializedMySQL::shouldSkipDDLCmd(const String & query) const
84{
85 if (settings->skip_ddl_patterns.value.empty())
86 return false;
87 const auto & skip_ddl_patterns = settings->skip_ddl_patterns.value;
88 for (const String & pattern: skip_ddl_patterns)
89 {
90 if (std::regex_match(query, std::regex(pattern, std::regex_constants::icase)))
91 return true;
92 }
93 return false;
94}
95
96void DatabaseCnchMaterializedMySQL::manualResyncTable(const String & table_name, ContextPtr local_context)
97{

Callers 1

executeDDLQueryMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected