1 backup.mysql.inc | protected BackupMySql::getTableNames() |
Get a list of tables in the database.
Return value
string[]: An array of all table names, numerically indexed.
Overrides BackupDatabase::getTableNames
File
- core/
includes/ backup/ backup.mysql.inc, line 184 - Contains the BackupMySQL class.
Class
- BackupMySql
- Creates and restores backups from a MySQL database source.
Code
protected function getTableNames() {
if (empty($this->tableNames)) {
$this->tableNames = $this->query("SHOW FULL TABLES WHERE Table_Type = 'BASE TABLE'")
->fetchCol();
}
return $this->tableNames;
}