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.
()
| 3244 | // ID returns the ID value in the mutation. Note that the ID is only available |
| 3245 | // if it was provided to the builder or after it was returned from the database. |
| 3246 | func (m *CASMappingMutation) ID() (id uuid.UUID, exists bool) { |
| 3247 | if m.id == nil { |
| 3248 | return |
| 3249 | } |
| 3250 | return *m.id, true |
| 3251 | } |
| 3252 | |
| 3253 | // IDs queries the database and returns the entity ids that match the mutation's predicate. |
| 3254 | // That means, if the mutation is applied within a transaction with an isolation level such |