MediaWiki master
|
Custom handling for ENUM datatype. More...
Inherits Type.
Public Member Functions | |
formatValues ( $values) | |
Get the imploded values suitable for pushing directly into ENUM();. | |
getName () | |
getSQLDeclaration (array $column, AbstractPlatform $platform) | |
Gets the SQL declaration snippet for an ENUM column. | |
makeEnumTypeSql ( $column, $platform) | |
Gets the sql portion to create ENUM for Postgres table column. | |
Public Attributes | |
const | ENUM = 'mwenum' |
Custom handling for ENUM datatype.
NOTE: Use of this type is discouraged unless necessary. Please use alternative types where possible. See T119173 for the RFC discussion about this type and potential alternatives.
Definition at line 18 of file EnumType.php.
Wikimedia\Rdbms\EnumType::formatValues | ( | $values | ) |
Get the imploded values suitable for pushing directly into ENUM();.
string[] | $values |
Definition at line 83 of file EnumType.php.
Referenced by Wikimedia\Rdbms\EnumType\getSQLDeclaration(), and Wikimedia\Rdbms\EnumType\makeEnumTypeSql().
Wikimedia\Rdbms\EnumType::getName | ( | ) |
Definition at line 90 of file EnumType.php.
References Wikimedia\Rdbms\EnumType\ENUM.
Wikimedia\Rdbms\EnumType::getSQLDeclaration | ( | array | $column, |
AbstractPlatform | $platform ) |
Gets the SQL declaration snippet for an ENUM column.
mixed[] | $column | Column definition |
AbstractPlatform | $platform |
Definition at line 29 of file EnumType.php.
References Wikimedia\Rdbms\EnumType\formatValues().
Wikimedia\Rdbms\EnumType::makeEnumTypeSql | ( | $column, | |
$platform ) |
Gets the sql portion to create ENUM for Postgres table column.
mixed[] | $column | |
AbstractPlatform | $platform |
\InvalidArgumentException
Definition at line 63 of file EnumType.php.
References Wikimedia\Rdbms\EnumType\formatValues().
const Wikimedia\Rdbms\EnumType::ENUM = 'mwenum' |
Definition at line 19 of file EnumType.php.
Referenced by Wikimedia\Rdbms\EnumType\getName().