Definition
/**
* Creates a type attribute for composite types.
*
* Example: type_attr('name', data_type_text())
* Produces: name text
*
* Example: type_attr('description', data_type_text())->collate('en_US')
* Produces: description text COLLATE "en_US"
*
* @param string $name The attribute name
* @param DataType $type The attribute type
*
* @return TypeAttribute Type attribute value object
*/
type_attr(string $name, DataType $type) : TypeAttribute