| 11 | namespace binder { |
| 12 | |
| 13 | std::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 |
no test coverage detected