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