You are here

public function backup_migrate_source_db_mysql::_get_view_names in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.3 includes/sources.db.mysql.inc \backup_migrate_source_db_mysql::_get_view_names()

Get a list of views in the database.

File

includes/sources.db.mysql.inc, line 297
Functions to handle the direct to database source.

Class

backup_migrate_source_db_mysql
A source type for backing up from database server.

Code

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