Represents a database schema collection
Used to access information about the tables, and other data in a database.
$_connection
protected $_dialect
protected __construct( Cake\Datasource\ConnectionInterface $connection )
Constructor.
Cake\Datasource\ConnectionInterface
$connection
_reflect( string $stage , string $name , array $config , Cake\Database\Schema\TableSchema $schema )
Helper method for running each step of the reflection process.
$stage
$name
$config
Cake\Database\Schema\TableSchema
$schema
Cake\Database\Exception
describe( string $name , array $options [] )
Get the column metadata for a table.
Caching will be applied if cacheMetadata
key is present in the Connection configuration options. Defaults to cake_model when true.
forceRefresh
- Set to true to force rebuilding the cached metadata. Defaults to false.$name
$options
optional [] Cake\Database\Schema\TableSchema
Cake\Database\Exception
listTables( )
Get the list of tables available in the current connection.
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.Database.Schema.Collection.html