MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / ValidColumn

Function ValidColumn

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

70
71// ValidColumn reports if the column name is valid (part of the table columns).
72func ValidColumn(column string) bool {
73 for i := range Columns {
74 if column == Columns[i] {
75 return true
76 }
77 }
78 return false
79}
80
81// Note that the variables below are initialized by the runtime
82// package on the initialization of the application. Therefore,

Callers 2

prepareQueryMethod · 0.92
sqlSaveMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected