(update *ast.UpdateExpression)
| 989 | } |
| 990 | |
| 991 | func (f *SQLFormatter) formatUpdateExpression(update *ast.UpdateExpression) error { |
| 992 | if err := f.formatExpression(update.Column); err != nil { |
| 993 | return err |
| 994 | } |
| 995 | f.builder.WriteString(" = ") |
| 996 | return f.formatExpression(update.Value) |
| 997 | } |
| 998 | |
| 999 | func (f *SQLFormatter) formatColumnDef(col *ast.ColumnDef) { |
| 1000 | f.builder.WriteString(col.Name + " " + col.Type) |
no test coverage detected