IsValidArrayElementType returns true if the given type can be used as the element type of an ArrayFamily-typed column. If the valid return is false, the issue number should be included in the error report to inform the user.
(t *T)
| 1961 | // element type of an ArrayFamily-typed column. If the valid return is false, |
| 1962 | // the issue number should be included in the error report to inform the user. |
| 1963 | func IsValidArrayElementType(t *T) (valid bool, issueNum int) { |
| 1964 | switch t.Family() { |
| 1965 | case JsonFamily: |
| 1966 | return false, 23468 |
| 1967 | default: |
| 1968 | return true, 0 |
| 1969 | } |
| 1970 | } |
| 1971 | |
| 1972 | // CheckArrayElementType ensures that the given type can be used as the element |
| 1973 | // type of an ArrayFamily-typed column. If not, it returns an error. |
no test coverage detected
searching dependent graphs…