getTableSchema() public method

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.
コード例 #1
0
ファイル: Schema.php プロジェクト: helloj/yii2-dbmaker
 /**
  * @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);
 }