MCPcopy
hub / github.com/ent/ent / NewDeleteSpec

Function NewDeleteSpec

dialect/sql/sqlgraph/graph.go:881–883  ·  view source on GitHub ↗

NewDeleteSpec creates a new node deletion spec.

(table string, id *FieldSpec)

Source from the content-addressed store, hash-verified

879
880// NewDeleteSpec creates a new node deletion spec.
881func NewDeleteSpec(table string, id *FieldSpec) *DeleteSpec {
882 return &DeleteSpec{Node: &NodeSpec{Table: table, ID: id}}
883}
884
885// DeleteNodes applies the DeleteSpec on the graph.
886func DeleteNodes(ctx context.Context, drv dialect.Driver, spec *DeleteSpec) (int, error) {

Callers 15

sqlExecMethod · 0.92
sqlExecMethod · 0.92
sqlExecMethod · 0.92
sqlExecMethod · 0.92
sqlExecMethod · 0.92
sqlExecMethod · 0.92
sqlExecMethod · 0.92
sqlExecMethod · 0.92
sqlExecMethod · 0.92
sqlExecMethod · 0.92
sqlExecMethod · 0.92
sqlExecMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…