Final Class Yiisoft\Db\Mysql\Column\ColumnDefinitionParser
| Inheritance | Yiisoft\ |
|---|
Parses column definition string. For example, string(255) or int unsigned.
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| extraInfo() | Yiisoft\ |
Method Details
| protected array extraInfo ( string $extra ) | ||
| $extra | string | |
protected function extraInfo(string $extra): array
{
$info = parent::extraInfo($extra);
if (empty($info['extra'])) {
return $info;
}
$extra = $this->parseStringValue($info['extra'], '/\s*\b(?:CHARACTER SET|CHARSET)\s+(\S+)/i' , 'characterSet', $info);
/** @psalm-var ExtraInfo $info */
if (!empty($extra)) {
$info['extra'] = $extra;
} else {
unset($info['extra']);
}
return $info;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.