ValidColumn reports if the column name is valid (part of the table columns).
(column string)
| 85 | |
| 86 | // ValidColumn reports if the column name is valid (part of the table columns). |
| 87 | func ValidColumn(column string) bool { |
| 88 | for i := range Columns { |
| 89 | if column == Columns[i] { |
| 90 | return true |
| 91 | } |
| 92 | } |
| 93 | return false |
| 94 | } |
| 95 | |
| 96 | var ( |
| 97 | // DefaultCreatedAt holds the default value on creation for the "created_at" field. |
no outgoing calls
no test coverage detected
searching dependent graphs…