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. |
리턴 | null | yii\db\TableSchema | table metadata. Null if the named table does not exist. |
/** * @inheritdoc */ public function getTableSchema($name, $refresh = false) { // Internal table name is uppercase and // to ensure the consistency of the key cache return parent::getTableSchema(strtoupper($name), $refresh); }