GdprSqlOracle.php in General Data Protection Regulation 8
File
modules/gdpr_dump/src/Sql/GdprSqlOracle.php
View source
<?php
namespace Drupal\gdpr_dump\Sql;
use Drush\Sql\Sqloracle;
class GdprSqlOracle extends Sqloracle {
public function dumpCmd($table_selection) {
$exec = 'exp ' . $this
->creds();
$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,
];
}
}