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

Method toString

src/binder/bind/ddl/bound_create_table_info.cpp:13–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace binder {
12
13std::string BoundCreateTableInfo::toString() const {
14 std::string result = "";
15 switch (type) {
16 case CatalogEntryType::NODE_TABLE_ENTRY: {
17 result += "Create Node Table: ";
18 result += tableName;
19 result += ",Properties: ";
20 auto nodeInfo = extraInfo->ptrCast<BoundExtraCreateNodeTableInfo>();
21 for (auto& definition : nodeInfo->propertyDefinitions) {
22 result += definition.getName();
23 result += ", ";
24 }
25 } break;
26 case CatalogEntryType::REL_GROUP_ENTRY: {
27 result += "Create Relationship Table: ";
28 result += tableName;
29 auto relGroupInfo = extraInfo->ptrCast<BoundExtraCreateRelTableGroupInfo>();
30 result += "Properties: ";
31 for (auto& definition : relGroupInfo->propertyDefinitions) {
32 result += definition.getName();
33 result += ", ";
34 }
35 } break;
36 default:
37 break;
38 }
39 return result;
40}
41
42} // namespace binder
43} // namespace lbug

Callers 4

getBoolCopyOptionFunction · 0.45
matchColumnExpressionFunction · 0.45
bindCopyToClauseMethod · 0.45
validateHintCompletenessFunction · 0.45

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected