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

Function ValidColumn

ent/node/node.go:110–117  ·  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

108
109// ValidColumn reports if the column name is valid (part of the table columns).
110func ValidColumn(column string) bool {
111 for i := range Columns {
112 if column == Columns[i] {
113 return true
114 }
115 }
116 return false
117}
118
119var (
120 // 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