You are here

public function backup_migrate_source_db_mysql::_get_db_connection 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_db_connection()

Get the db connection for the specified db.

Overrides backup_migrate_source_db::_get_db_connection

3 calls to backup_migrate_source_db_mysql::_get_db_connection()
backup_migrate_source_db_mysql::query in includes/sources.db.mysql.inc
Run a query on this source's database using Drupal's MySQL engine.
backup_migrate_source_db_mysql::_db_info in includes/sources.db.mysql.inc
Get the version info for the given DB.
backup_migrate_source_db_mysql::_restore_db_from_file in includes/sources.db.mysql.inc
Backup the databases to a file.

File

includes/sources.db.mysql.inc, line 495
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_db_connection() {
  if (!$this->connection) {
    $this->connection = parent::_get_db_connection();
  }
  return $this->connection;
}