MCPcopy
hub / github.com/ent/ent / Query

Method Query

dialect/sql/builder.go:739–748  ·  view source on GitHub ↗

Query returns query representation of a `DELETE` statement.

()

Source from the content-addressed store, hash-verified

737
738// Query returns query representation of a `DELETE` statement.
739func (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.
751type Predicate struct {

Callers

nothing calls this directly

Calls 5

WriteStringMethod · 0.80
writeSchemaMethod · 0.80
IdentMethod · 0.80
JoinMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected