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

Function ValidColumn

ent/entity/entity.go:92–99  ·  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

90
91// ValidColumn reports if the column name is valid (part of the table columns).
92func ValidColumn(column string) bool {
93 for i := range Columns {
94 if column == Columns[i] {
95 return true
96 }
97 }
98 return false
99}
100
101// Note that the variables below are initialized by the runtime
102// 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