public function SqlBase::listTables

8.0.x SqlBase.php public SqlBase::listTables()
7.x SqlBase.php public SqlBase::listTables()
master SqlBase.php public SqlBase::listTables()

Extract the name of all existing tables in the given database.

Return value

array An array of table names which exist in the current database.

2 calls to SqlBase::listTables()
SqlBase::drop_or_create in lib/Drush/Sql/SqlBase.php
Drop all tables (if DB exists) or CREATE target database.
SqlBase::get_expanded_table_selection in lib/Drush/Sql/SqlBase.php
Get a list of all table names and expand input that may contain wildcards (`*`) if necessary so that the array returned only contains valid table names i.e. actual tables that exist, without a wildcard.
5 methods override SqlBase::listTables()
Sqlmysql::listTables in lib/Drush/Sql/Sqlmysql.php
Extract the name of all existing tables in the given database.
Sqloracle::listTables in lib/Drush/Sql/Sqloracle.php
Extract the name of all existing tables in the given database.
Sqlpgsql::listTables in lib/Drush/Sql/Sqlpgsql.php
Extract the name of all existing tables in the given database.
Sqlsqlite::listTables in lib/Drush/Sql/Sqlsqlite.php
Extract the name of all existing tables in the given database.
Sqlsqlsrv::listTables in lib/Drush/Sql/Sqlsqlsrv.php
Extract the name of all existing tables in the given database.

File

lib/Drush/Sql/SqlBase.php, line 324

Namespace

Drush\Sql

Class

SqlBase

Code

public function listTables() {
}