MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / registerDataTypeCustom

Method registerDataTypeCustom

src/DataTypes/DataTypeFactory.cpp:324–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324void DataTypeFactory::registerDataTypeCustom(const String & family_name, CreatorWithCustom creator, Case case_sensitiveness, Documentation documentation)
325{
326 registerDataType(family_name, [creator](const ASTPtr & ast)
327 {
328 auto res = creator(ast);
329 res.first->setCustomization(std::move(res.second));
330
331 return res.first;
332 }, case_sensitiveness, std::move(documentation));
333}
334
335void DataTypeFactory::registerSimpleDataTypeCustom(const String & name, SimpleCreatorWithCustom creator, Case case_sensitiveness, Documentation documentation)
336{

Calls 1

setCustomizationMethod · 0.80

Tested by

no test coverage detected