You are here

public function GdprSqlDump::dump in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_dump/src/Service/GdprSqlDump.php \Drupal\gdpr_dump\Service\GdprSqlDump::dump()
  2. 3.0.x modules/gdpr_dump/src/Service/GdprSqlDump.php \Drupal\gdpr_dump\Service\GdprSqlDump::dump()

Dump command.

Throws

\Drush\Sql\SqlException

\InvalidArgumentException

\Drupal\Core\Database\IntegrityConstraintViolationException

\Drupal\Core\Database\DatabaseExceptionWrapper

\Drupal\Core\Database\TransactionNoActiveException

\Drupal\Core\Database\TransactionCommitFailedException

\Exception

File

modules/gdpr_dump/src/Service/GdprSqlDump.php, line 122

Class

GdprSqlDump
Class GdprSqlDump.

Namespace

Drupal\gdpr_dump\Service

Code

public function dump() {
  drush_sql_bootstrap_further();
  $sql = $this
    ->getInstance();
  $this
    ->prepare();
  $result = $sql
    ->dump(drush_get_option('result-file', FALSE));
  $this
    ->cleanup();
  return $result;
}