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

Method toString

src/Parsers/FieldFromAST.cpp:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82using HideDiskConfigurationVisitor = InDepthNodeVisitor<DiskConfigurationMasker, false>;
83
84String FieldFromASTImpl::toString(bool show_secrets) const
85{
86 if (!show_secrets && isDiskFunction(ast))
87 {
88 auto hidden = ast->clone();
89 HideDiskConfigurationVisitor::Data data{};
90 HideDiskConfigurationVisitor{data}.visit(hidden);
91 return hidden->formatWithSecretsOneLine();
92 }
93
94 return ast->formatWithSecretsOneLine();
95}
96
97}

Callers 4

parseImplMethod · 0.45
formatImplMethod · 0.45

Calls 4

isDiskFunctionFunction · 0.85
cloneMethod · 0.45
visitMethod · 0.45

Tested by

no test coverage detected