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

Function registerDataTypeDomainBool

src/DataTypes/DataTypeDomainBool.cpp:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7
8void registerDataTypeDomainBool(DataTypeFactory & factory)
9{
10 factory.registerSimpleDataTypeCustom("Bool", []
11 {
12 auto type = DataTypeFactory::instance().get("UInt8");
13 return std::make_pair(type, std::make_unique<DataTypeCustomDesc>(
14 std::make_unique<DataTypeCustomFixedName>("Bool"), std::make_unique<SerializationBool>(type->getDefaultSerialization())));
15 });
16
17 factory.registerAlias("bool", "Bool", DataTypeFactory::CaseInsensitive);
18 factory.registerAlias("boolean", "Bool", DataTypeFactory::CaseInsensitive);
19}
20
21}

Callers 1

DataTypeFactoryMethod · 0.85

Calls 4

registerAliasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected