Skip to content
Search
DSL · Pg query

type_attr

Definition

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

Contributors

Built in the open.

Join us on GitHub
scroll back to top