public function MySqlHandler::listTables in DB Maintenance 8
Same name and namespace in other branches
- 7.2 src/Module/Db/DbServer/MySql/MySqlHandler.php \Drupal\db_maintenance\Module\Db\DbServer\MySql\MySqlHandler::listTables()
- 2.0.x src/Module/Db/DbServer/MySql/MySqlHandler.php \Drupal\db_maintenance\Module\Db\DbServer\MySql\MySqlHandler::listTables()
Returns list of tables in the active database.
Overrides DbServerHandlerInterface::listTables
File
- src/
Module/ Db/ DbServer/ MySql/ MySqlHandler.php, line 20 - MySqlHandler class.
Class
- MySqlHandler
- MySqlHandler class.
Namespace
Drupal\db_maintenance\Module\Db\DbServer\MySqlCode
public function listTables() {
$result = \Drupal::database()
->query("SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'", array(), array(
'fetch' => \PDO::FETCH_ASSOC,
));
return $result;
}