MCPcopy
hub / github.com/crowdsecurity/crowdsec / UpdateOne

Method UpdateOne

pkg/database/ent/client.go:1404–1407  ·  view source on GitHub ↗

UpdateOne returns an update builder for the given entity.

(_m *Lock)

Source from the content-addressed store, hash-verified

1402
1403// UpdateOne returns an update builder for the given entity.
1404func (c *LockClient) UpdateOne(_m *Lock) *LockUpdateOne {
1405 mutation := newLockMutation(c.config, OpUpdateOne, withLock(_m))
1406 return &LockUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation}
1407}
1408
1409// UpdateOneID returns an update builder for the given id.
1410func (c *LockClient) UpdateOneID(id int) *LockUpdateOne {

Callers 11

UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45

Calls 3

HooksMethod · 0.95
newLockMutationFunction · 0.85
withLockFunction · 0.85

Tested by

no test coverage detected