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.
()
| 594 | // ID returns the ID value in the mutation. Note that the ID is only available |
| 595 | // if it was provided to the builder or after it was returned from the database. |
| 596 | func (m *CarMutation) ID() (id int, exists bool) { |
| 597 | if m.id == nil { |
| 598 | return |
| 599 | } |
| 600 | return *m.id, true |
| 601 | } |
| 602 | |
| 603 | // IDs queries the database and returns the entity ids that match the mutation's predicate. |
| 604 | // That means, if the mutation is applied within a transaction with an isolation level such |
no outgoing calls
no test coverage detected