ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
()
| 8450 | // ID returns the ID value in the mutation. Note that the ID is only available |
| 8451 | // if it was provided to the builder or after it was returned from the database. |
| 8452 | func (m *LockMutation) ID() (id int, exists bool) { |
| 8453 | if m.id == nil { |
| 8454 | return |
| 8455 | } |
| 8456 | return *m.id, true |
| 8457 | } |
| 8458 | |
| 8459 | // IDs queries the database and returns the entity ids that match the mutation's predicate. |
| 8460 | // That means, if the mutation is applied within a transaction with an isolation level such |
no outgoing calls
no test coverage detected