MCPcopy Index your code
hub / github.com/apache/devlake / CreateOrUpdate

Method CreateOrUpdate

backend/core/dal/dal.go:149–149  ·  view source on GitHub ↗

CreateOrUpdate tries to create the record, or fallback to update all if failed

(entity interface{}, clauses ...Clause)

Source from the content-addressed store, hash-verified

147 UpdateAllColumn(entity interface{}, clauses ...Clause) errors.Error
148 // CreateOrUpdate tries to create the record, or fallback to update all if failed
149 CreateOrUpdate(entity interface{}, clauses ...Clause) errors.Error
150 // CreateIfNotExist tries to create the record if not exist
151 CreateIfNotExist(entity interface{}, clauses ...Clause) errors.Error
152 // Delete records from database

Callers 15

RunPluginSubTasksFunction · 0.65
UpMethod · 0.65
PutMultipleCbMethod · 0.65
CloseMethod · 0.65
flushWithoutLockingMethod · 0.65
SaveScopeMethod · 0.65
CreateOrUpdateMethod · 0.65
PutStoreFunction · 0.65
ConvertWorkspaceFunction · 0.65
TestIncidentDataFlowFunction · 0.65
PrepareTaskDataMethod · 0.65

Implementers 1

Dalgormbackend/impls/dalgorm/dalgorm.go

Calls

no outgoing calls

Tested by 2

TestIncidentDataFlowFunction · 0.52
TestIncidentDataFlowFunction · 0.52