You are here

public function GdprSqlOracle::dumpCmd in General Data Protection Regulation 8

File

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

Class

GdprSqlOracle
Class GdprSqlOracle.

Namespace

Drupal\gdpr_dump\Sql

Code

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,
  ];
}