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

Method GetPrimaryKeyFields

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

GetPrimaryKeyFields get the PrimaryKey from `gorm` tag

(t reflect.Type)

Source from the content-addressed store, hash-verified

165 GetColumns(dst Tabler, filter func(columnMeta ColumnMeta) bool) (cms []ColumnMeta, err errors.Error)
166 // GetPrimaryKeyFields get the PrimaryKey from `gorm` tag
167 GetPrimaryKeyFields(t reflect.Type) []reflect.StructField
168 // RenameColumn renames column name for specified table
169 RenameColumn(table, oldColumnName, newColumnName string) errors.Error
170 // ModifyColumnType modifies column type

Callers 1

NewBatchSaveFunction · 0.65

Implementers 1

Dalgormbackend/impls/dalgorm/dalgorm.go

Calls

no outgoing calls

Tested by

no test coverage detected