MCPcopy
hub / github.com/ent/ent / ID

Method ID

entc/integration/migrate/entv2/mutation.go:596–601  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
596func (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

Callers 13

IDsMethod · 0.95
sqlSaveMethod · 0.45
createSpecMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
createSpecMethod · 0.45
sqlSaveMethod · 0.45
createSpecMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected