MCPcopy Create free account
hub / github.com/bytebase/bytebase / restorableColumns

Function restorableColumns

backend/plugin/parser/pg/restore.go:168–177  ·  view source on GitHub ↗
(table *model.TableMetadata)

Source from the content-addressed store, hash-verified

166}
167
168func restorableColumns(table *model.TableMetadata) []string {
169 var columns []string
170 for _, column := range table.GetProto().GetColumns() {
171 if column.GetGeneration() != nil {
172 continue
173 }
174 columns = append(columns, column.Name)
175 }
176 return columns
177}
178
179func quotePGColumns(columns []string) string {
180 var quotedColumns []string

Callers 1

doGenerateFunction · 0.85

Calls 3

GetColumnsMethod · 0.45
GetProtoMethod · 0.45
GetGenerationMethod · 0.45

Tested by

no test coverage detected