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.
()
| 1866 | // ID returns the ID value in the mutation. Note that the ID is only available |
| 1867 | // if it was provided to the builder or after it was returned from the database. |
| 1868 | func (m *CASBackendMutation) ID() (id uuid.UUID, exists bool) { |
| 1869 | if m.id == nil { |
| 1870 | return |
| 1871 | } |
| 1872 | return *m.id, true |
| 1873 | } |
| 1874 | |
| 1875 | // IDs queries the database and returns the entity ids that match the mutation's predicate. |
| 1876 | // That means, if the mutation is applied within a transaction with an isolation level such |