ValidColumn reports if the column name is valid (part of the table columns).
(column string)
| 65 | |
| 66 | // ValidColumn reports if the column name is valid (part of the table columns). |
| 67 | func ValidColumn(column string) bool { |
| 68 | for i := range Columns { |
| 69 | if column == Columns[i] { |
| 70 | return true |
| 71 | } |
| 72 | } |
| 73 | return false |
| 74 | } |
| 75 | |
| 76 | var ( |
| 77 | // DefaultCreateTime holds the default value on creation for the "create_time" field. |
no outgoing calls
no test coverage detected