NewDeleteSpec creates a new node deletion spec.
(table string, id *FieldSpec)
| 879 | |
| 880 | // NewDeleteSpec creates a new node deletion spec. |
| 881 | func 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. |
| 886 | func DeleteNodes(ctx context.Context, drv dialect.Driver, spec *DeleteSpec) (int, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…