You are here

class GdprSqlOracle in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_dump/src/Sql/GdprSqlOracle.php \Drupal\gdpr_dump\Sql\GdprSqlOracle
  2. 3.0.x modules/gdpr_dump/src/Sql/GdprSqlOracle.php \Drupal\gdpr_dump\Sql\GdprSqlOracle

Class GdprSqlOracle.

@package Drupal\gdpr_dump\Sql

Hierarchy

  • class \Drupal\gdpr_dump\Sql\GdprSqlOracle extends \Drush\Sql\Sqloracle

Expanded class hierarchy of GdprSqlOracle

File

modules/gdpr_dump/src/Sql/GdprSqlOracle.php, line 12

Namespace

Drupal\gdpr_dump\Sql
View source
class GdprSqlOracle extends Sqloracle {

  /**
   * {@inheritdoc}
   */
  public function dumpCmd($table_selection) {
    $exec = 'exp ' . $this
      ->creds();

    // Change variable $file by reference in order to get drush_log() to report.
    $file = $this->db_spec['username'] . '.dmp';
    $exec .= ' file=' . $file;
    $exec .= ' owner=' . $this->db_spec['username'];
    if ($option = drush_get_option('extra', $this->query_extra)) {
      $exec .= " {$option}";
    }
    return [
      $exec,
      $file,
    ];
  }

}

Members