You are here

public function backup_migrate_destination_db_mysql::_get_table_names in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.db.mysql.inc \backup_migrate_destination_db_mysql::_get_table_names()
  2. 8.3 includes/destinations.db.mysql.inc \backup_migrate_destination_db_mysql::_get_table_names()
  3. 6.2 includes/destinations.db.mysql.inc \backup_migrate_destination_db_mysql::_get_table_names()
  4. 7.2 includes/destinations.db.mysql.inc \backup_migrate_destination_db_mysql::_get_table_names()

Get a list of tables in the database.

Overrides backup_migrate_destination_db::_get_table_names

File

includes/destinations.db.mysql.inc, line 295
Functions to handle the direct to database destination.

Class

backup_migrate_destination_db_mysql
A destination type for saving to a database server.

Code

public function _get_table_names() {
  if (empty(static::$tableNames)) {
    static::$tableNames = $this
      ->query("SHOW FULL TABLES WHERE Table_Type = 'BASE TABLE'")
      ->fetchAllKeyed(0, 0);
  }
  return static::$tableNames;
}