Types
class Types (View source)
Class holding type definitions for MySQL and MariaDB.
Constants
private UNARY_OPERATORS |
|
private NULL_OPERATORS |
|
private ENUM_OPERATORS |
|
private TEXT_OPERATORS |
|
private NUMBER_OPERATORS |
|
private UUID_OPERATORS |
|
Methods
Check whether operator is unary.
Returns operators for given type
Returns operators for given type as html options
Returns the data type description.
Returns class of a type, used for functions available for type or default values.
Returns array of functions available for a class.
Returns array of all functions available.
Returns array of all attributes available.
Returns array of all column types available.
Returns an array of integer types
No description
Returns an array of float types
Returns the min and max values of a given integer type
Details
__construct(DatabaseInterface $dbi)
No description
bool
isUnaryOperator(string $op)
Check whether operator is unary.
array
getTypeOperators(string $type, bool $null)
Returns operators for given type
string
getTypeOperatorsHtml(string $type, bool $null, string|null $selectedOperator = null)
Returns operators for given type as html options
string
getTypeDescription(string $type)
Returns the data type description.
TypeClass
getTypeClass(string $type)
Returns class of a type, used for functions available for type or default values.
array
getFunctionsClass(TypeClass $class)
Returns array of functions available for a class.
array
getAllFunctions()
Returns array of all functions available.
array
getAttributes()
Returns array of all attributes available.
array
getColumns()
Returns array of all column types available.
VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity.
array
getIntegerTypes()
Returns an array of integer types
string
mapAliasToMysqlType(string $alias)
No description
array
getFloatTypes()
Returns an array of float types
array
getIntegerRange(string $type, bool $signed = true)
Returns the min and max values of a given integer type