Query returns query representation of a `DELETE` statement.
()
| 737 | |
| 738 | // Query returns query representation of a `DELETE` statement. |
| 739 | func (d *DeleteBuilder) Query() (string, []any) { |
| 740 | d.WriteString("DELETE FROM ") |
| 741 | d.writeSchema(d.schema) |
| 742 | d.Ident(d.table) |
| 743 | if d.where != nil { |
| 744 | d.WriteString(" WHERE ") |
| 745 | d.Join(d.where) |
| 746 | } |
| 747 | return d.String(), d.args |
| 748 | } |
| 749 | |
| 750 | // Predicate is a where predicate. |
| 751 | type Predicate struct { |
nothing calls this directly
no test coverage detected