function backup_migrate_destination_db_mysql::_get_views in Backup and Migrate 6.2
Same name and namespace in other branches
- 8.3 includes/destinations.db.mysql.inc \backup_migrate_destination_db_mysql::_get_views()
- 7.3 includes/destinations.db.mysql.inc \backup_migrate_destination_db_mysql::_get_views()
- 7.2 includes/destinations.db.mysql.inc \backup_migrate_destination_db_mysql::_get_views()
Get a list of views in the db.
2 calls to backup_migrate_destination_db_mysql::_get_views()
- backup_migrate_destination_db_mysql::_backup_db_to_file in includes/
destinations.db.mysql.inc - Backup the databases to a file.
- backup_migrate_destination_db_mysql::_get_view_names in includes/
destinations.db.mysql.inc - Get a list of views in the database.
File
- includes/
destinations.db.mysql.inc, line 211 - Functions to handle the direct to database destination.
Class
- backup_migrate_destination_db_mysql
- A destination type for saving to a database server.
Code
function _get_views() {
$out = array();
// get auto_increment values and names of all tables
$tables = db_query("show table status");
while ($table = db_fetch_array($tables)) {
if (empty($table['Engine'])) {
$out[$table['Name']] = $table;
}
}
return $out;
}