MCPcopy
hub / github.com/apache/devlake / CreateIfNotExist

Method CreateIfNotExist

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

CreateIfNotExist tries to create the record if not exist

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

Source from the content-addressed store, hash-verified

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
153 Delete(entity interface{}, clauses ...Clause) errors.Error
154 // AllTables returns all tables in database

Callers 13

UpMethod · 0.65
UpMethod · 0.65
EnrichOptionsFunction · 0.65
EnrichOptionsFunction · 0.65
UpMethod · 0.65
EnrichOptionsFunction · 0.65
PrepareTaskDataMethod · 0.65
UpMethod · 0.65
EnrichOptionsFunction · 0.65
TestRepoDataFlowFunction · 0.65
CalculateCommitsDiffFunction · 0.65
UpMethod · 0.65

Implementers 1

Dalgormbackend/impls/dalgorm/dalgorm.go

Calls

no outgoing calls

Tested by 1

TestRepoDataFlowFunction · 0.52