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

Function ValidColumn

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

63
64// ValidColumn reports if the column name is valid (part of the table columns).
65func ValidColumn(column string) bool {
66 for i := range Columns {
67 if column == Columns[i] {
68 return true
69 }
70 }
71 return false
72}
73
74// Note that the variables below are initialized by the runtime
75// package on the initialization of the application. Therefore,

Callers 2

sqlSaveMethod · 0.92
prepareQueryMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected