MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / DeleteOneID

Method DeleteOneID

pkg/database/ent/client.go:1427–1432  ·  view source on GitHub ↗

DeleteOneID returns a builder for deleting the given entity by its id.

(id int)

Source from the content-addressed store, hash-verified

1425
1426// DeleteOneID returns a builder for deleting the given entity by its id.
1427func (c *LockClient) DeleteOneID(id int) *LockDeleteOne {
1428 builder := c.Delete().Where(lock.ID(id))
1429 builder.mutation.id = &id
1430 builder.mutation.op = OpDeleteOne
1431 return &LockDeleteOne{builder}
1432}
1433
1434// Query returns a query builder for Lock.
1435func (c *LockClient) Query() *LockQuery {

Callers 1

DeleteOneMethod · 0.95

Calls 3

DeleteMethod · 0.95
IDFunction · 0.92
WhereMethod · 0.45

Tested by

no test coverage detected