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.
()
| 4699 | // ID returns the ID value in the mutation. Note that the ID is only available |
| 4700 | // if it was provided to the builder or after it was returned from the database. |
| 4701 | func (m *FsEventMutation) ID() (id int, exists bool) { |
| 4702 | if m.id == nil { |
| 4703 | return |
| 4704 | } |
| 4705 | return *m.id, true |
| 4706 | } |
| 4707 | |
| 4708 | // IDs queries the database and returns the entity ids that match the mutation's predicate. |
| 4709 | // That means, if the mutation is applied within a transaction with an isolation level such |