function _backup_migrate_get_tables in Backup and Migrate 5.2
Same name and namespace in other branches
- 5 backup_migrate.module \_backup_migrate_get_tables()
- 6 backup_migrate.module \_backup_migrate_get_tables()
Get a list of tables in the db. Works with MySQL, Postgres not tested.
1 call to _backup_migrate_get_tables()
- _backup_migrate_get_dump_sql in includes/db.inc 
- Get the sql dump file. Returns a list of sql commands, one command per line. That makes it easier to import without loading the whole file into memory. The files are a little harder to read, but human-readability is not a priority
File
- includes/db.inc, line 151 
- General database dump/restore code for Backup and Migrate.
Code
function _backup_migrate_get_tables() {
  $out = array();
  // get auto_increment values and names of all tables
  $tables = db_query("show table status");
  while ($table = db_fetch_array($tables)) {
    $out[$table['Name']] = $table;
  }
  return $out;
}