Obtains the schema information for the named table.
public getTableSchema ( string $name, boolean $refresh = false ) : yii\db\TableSchema | ||
$name | string | table name. |
$refresh | boolean | whether to reload the table schema even if it is found in the cache. |
return | yii\db\TableSchema | table schema information. Null if the named table does not exist. |