You are here

function _backup_migrate_get_tables_mysql in Backup and Migrate 8.2

Get a list of tables in the db.

2 calls to _backup_migrate_get_tables_mysql()
backup_migrate_backup_db_to_file_mysql in includes/db.mysql.inc
Get the sql dump file.
_backup_migrate_get_table_names_mysql in includes/db.mysql.inc
Get the list of table names.

File

includes/db.mysql.inc, line 141

Code

function _backup_migrate_get_tables_mysql() {
  $out = array();

  // get auto_increment values and names of all tables
  $tables = db_query("show table status");
  foreach ($tables as $table) {
    $out[$table->name] = $table;
  }
  return $out;
}