MCPcopy Create free account
hub / github.com/apache/devlake / GetColumns

Method GetColumns

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

GetColumns returns table columns in database

(dst Tabler, filter func(columnMeta ColumnMeta) bool)

Source from the content-addressed store, hash-verified

163 RenameTable(oldName, newName string) errors.Error
164 // GetColumns returns table columns in database
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

Callers 6

GetColumnNamesFunction · 0.65
GetPrimarykeyColumnsFunction · 0.65
getExistingColumnsFunction · 0.65
GetFieldsMethod · 0.65
UpMethod · 0.65

Implementers 1

Dalgormbackend/impls/dalgorm/dalgorm.go

Calls

no outgoing calls

Tested by

no test coverage detected