MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / ValidColumn

Function ValidColumn

ent/gitcommit/gitcommit.go:67–74  ·  view source on GitHub ↗

ValidColumn reports if the column name is valid (part of the table columns).

(column string)

Source from the content-addressed store, hash-verified

65
66// ValidColumn reports if the column name is valid (part of the table columns).
67func ValidColumn(column string) bool {
68 for i := range Columns {
69 if column == Columns[i] {
70 return true
71 }
72 }
73 return false
74}
75
76var (
77 // DefaultCreateTime holds the default value on creation for the "create_time" field.

Callers 2

prepareQueryMethod · 0.92
sqlSaveMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected