function backup_migrate_source_db_mysql::_get_tables in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 includes/sources.db.mysql.inc \backup_migrate_source_db_mysql::_get_tables()
- 7.3 includes/sources.db.mysql.inc \backup_migrate_source_db_mysql::_get_tables()
Get a list of tables in the db.
3 calls to backup_migrate_source_db_mysql::_get_tables()
- backup_migrate_source_db_mysql::_backup_db_to_file in includes/
sources.db.mysql.inc - Backup the databases to a file.
- backup_migrate_source_db_mysql::_backup_db_to_file_mysqldump in includes/
sources.db.mysql.inc - Backup the databases to a file using the mysqldump command.
- backup_migrate_source_db_mysql::_get_table_names in includes/
sources.db.mysql.inc - Get a list of tables in the database.
File
- includes/
sources.db.mysql.inc, line 255 - Functions to handle the direct to database source.
Class
- backup_migrate_source_db_mysql
- A source type for backing up from database server.
Code
function _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;
}