IsArrayType returns true if the type is of 'array' type. It can be array category with empty its array attribute NULL and element attribute NOT NULL. Or it can be pseudo category with name 'anyarray'.
()
| 645 | // It can be array category with empty its array attribute NULL and element attribute NOT NULL. |
| 646 | // Or it can be pseudo category with name 'anyarray'. |
| 647 | func (t *DoltgresType) IsArrayType() bool { |
| 648 | return (t.TypCategory == TypeCategory_ArrayTypes && t.Elem.ID != id.NullType && t.Array.ID == id.NullType) || |
| 649 | (t.TypCategory == TypeCategory_PseudoTypes && t.ID.TypeName() == "anyarray") |
| 650 | } |
| 651 | |
| 652 | // IsArrayCategory returns true if the type is of 'array' category. |
| 653 | // It can be either array types or vector types. |
no test coverage detected