You are here

function backup_migrate_destination_db_mysql::query in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.db.mysql.inc \backup_migrate_destination_db_mysql::query()
  2. 7.3 includes/destinations.db.mysql.inc \backup_migrate_destination_db_mysql::query()
  3. 7.2 includes/destinations.db.mysql.inc \backup_migrate_destination_db_mysql::query()

Run a db query on this destination's db.

7 calls to backup_migrate_destination_db_mysql::query()
backup_migrate_destination_db_mysql::_dump_table_data_sql_to_file in includes/destinations.db.mysql.inc
Get the sql to insert the data for a given table
backup_migrate_destination_db_mysql::_get_tables in includes/destinations.db.mysql.inc
Get a list of tables in the db.
backup_migrate_destination_db_mysql::_get_table_structure_sql in includes/destinations.db.mysql.inc
Get the sql for the structure of the given table.
backup_migrate_destination_db_mysql::_get_views in includes/destinations.db.mysql.inc
Get a list of views in the db.
backup_migrate_destination_db_mysql::_get_view_create_sql in includes/destinations.db.mysql.inc
Get the sql for the structure of the given table.

... See full list

File

includes/destinations.db.mysql.inc, line 440
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 query($query, $args = array(), $options = array()) {
  if ($conn = $this
    ->_get_db_connection()) {
    return $conn
      ->query($query, $args, $options);
  }
}