in internal/database/sqlserver/sqlserver.go [268:285]
func (h sqlServerHandler) generateTableMetadataComment(data *database.TableCommentData, enrichments map[string]bool) string {
if data == nil || data.TableName == "" {
return ""
}
var commentParts []string
isEnrichmentRequested := func(enrichment string) bool {
if len(enrichments) == 0 {
return true // If no enrichments specified, include all
}
return enrichments[enrichment]
}
if isEnrichmentRequested("description") && data.Description != "" {
commentParts = append(commentParts, fmt.Sprintf("Description: %s", data.Description))
}
return strings.Join(commentParts, " | ")
}