MCPcopy
hub / github.com/crowdsecurity/crowdsec / ID

Method ID

pkg/database/ent/mutation.go:8452–8457  ·  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

8450// ID returns the ID value in the mutation. Note that the ID is only available
8451// if it was provided to the builder or after it was returned from the database.
8452func (m *LockMutation) ID() (id int, exists bool) {
8453 if m.id == nil {
8454 return
8455 }
8456 return *m.id, true
8457}
8458
8459// IDs queries the database and returns the entity ids that match the mutation's predicate.
8460// That means, if the mutation is applied within a transaction with an isolation level such

Callers 12

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

Calls

no outgoing calls

Tested by

no test coverage detected