UpdateOne returns an update builder for the given entity.
(_m *Lock)
| 1402 | |
| 1403 | // UpdateOne returns an update builder for the given entity. |
| 1404 | func (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. |
| 1410 | func (c *LockClient) UpdateOneID(id int) *LockUpdateOne { |