(out *strings.Builder, routineType, schemaName, signature, name, comment string)
| 1810 | } |
| 1811 | |
| 1812 | func writeRoutineComment(out *strings.Builder, routineType, schemaName, signature, name, comment string) error { |
| 1813 | if signature == "" { |
| 1814 | signature = name + "()" |
| 1815 | } |
| 1816 | if _, err := fmt.Fprintf(out, "COMMENT ON %s %s IS '%s';\n\n", routineType, formatQualifiedRoutineSignature(schemaName, signature), escapeSingleQuote(comment)); err != nil { |
| 1817 | return err |
| 1818 | } |
| 1819 | return nil |
| 1820 | } |
| 1821 | |
| 1822 | func writeEnumTypeDiff(out *strings.Builder, enumDiff *schema.EnumTypeDiff) error { |
| 1823 | switch enumDiff.Action { |
no test coverage detected