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

Method Create

backend/impls/dalgorm/dalgorm.go:231–234  ·  view source on GitHub ↗

Create insert record to database

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

Source from the content-addressed store, hash-verified

229
230// Create insert record to database
231func (d *Dalgorm) Create(entity interface{}, clauses ...dal.Clause) errors.Error {
232 d.unwrapDynamic(&entity, &clauses)
233 return d.convertGormError(buildTx(d.db, clauses).Create(entity).Error)
234}
235
236// CreateWithMap insert record to database
237func (d *Dalgorm) CreateWithMap(entity interface{}, record map[string]interface{}) errors.Error {

Callers

nothing calls this directly

Calls 4

unwrapDynamicMethod · 0.95
convertGormErrorMethod · 0.95
buildTxFunction · 0.85
CreateMethod · 0.65

Tested by

no test coverage detected