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

Function ValidColumn

ent/nodeversion/nodeversion.go:96–108  ·  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

94
95// ValidColumn reports if the column name is valid (part of the table columns).
96func ValidColumn(column string) bool {
97 for i := range Columns {
98 if column == Columns[i] {
99 return true
100 }
101 }
102 for i := range ForeignKeys {
103 if column == ForeignKeys[i] {
104 return true
105 }
106 }
107 return false
108}
109
110var (
111 // 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