ValidColumn reports if the column name is valid (part of the table columns).
(column string)
| 108 | |
| 109 | // ValidColumn reports if the column name is valid (part of the table columns). |
| 110 | func ValidColumn(column string) bool { |
| 111 | for i := range Columns { |
| 112 | if column == Columns[i] { |
| 113 | return true |
| 114 | } |
| 115 | } |
| 116 | return false |
| 117 | } |
| 118 | |
| 119 | var ( |
| 120 | // DefaultCreateTime holds the default value on creation for the "create_time" field. |
no outgoing calls
no test coverage detected