getTableSchemas() public method
Returns the metadata for all tables in the database.
public yii\db\TableSchema[] getTableSchemas ( $schema = '', $refresh = false ) | ||
---|---|---|
$schema | string |
The schema of the tables. Defaults to empty string, meaning the current or default schema name. |
$refresh | boolean |
Whether to fetch the latest available table schemas. If this is false, cached data may be returned if available. |
return | yii\db\TableSchema[] |
The metadata for all tables in the database. Each array element is an instance of yii\db\TableSchema or its child class. |
Please login to continue.