Represents a database schema collection
Used to access information about the tables, and other data in a database.
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 _cakemodel when true.
forceRefresh
- Set to true to force rebuilding the cached metadata. Defaults to false.string
$name The name of the table to describe.
array
$options optional The options to use, see above.
\Cake\Database\Schema\TableSchemaInterface
Object with column metadata.
Cake\Database\Exception
listTables()
Get the list of tables available in the current connection.
string[]
The list of tables in the connected database/schema.
© 2005–present 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/4.1/interface-Cake.Database.Schema.CollectionInterface.html