MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / toStringInternal

Method toStringInternal

src/binder/expression/scalar_function_expression.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace binder {
10
11std::string ScalarFunctionExpression::toStringInternal() const {
12 if (function->name.starts_with("CAST")) {
13 return std::format("CAST({}, {})", ExpressionUtil::toString(children),
14 bindData->resultType.toString());
15 }
16 return std::format("{}({})", function->name, ExpressionUtil::toString(children));
17}
18
19std::string ScalarFunctionExpression::getUniqueName(const std::string& functionName,
20 const expression_vector& children) {

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected