src/Robo/Commands/Setup/ImportCommand.php
public function import() {
    $task = $this->taskDrush()
      ->drush('sql-drop')
      ->drush('sql-cli < ' . $this->getConfigValue('setup.dump-file'));
    $result = $task->run();
    $exit_code = $result->getExitCode();

    if ($exit_code) {
      throw new BltException("Unable to import setup.dump-file.");
    }
  }
public function import() {
    $task = $this->taskDrush()
      ->drush('sql-drop')
      ->drush('sql-cli < ' . $this->getConfigValue('setup.dump-file'));
    $result = $task->run();
    $exit_code = $result->getExitCode();

    if ($exit_code) {
      throw new BltException("Unable to import setup.dump-file.");
    }
  }
public function import ( ) { $ task = $ this -> taskDrush ( ) -> drush ( 'sql-drop' ) -> drush ( 'sql-cli < ' . $ this -> getConfigValue ( 'setup.dump-file' ) ) ; $ result = $ task -> run ( ) ; $ exit_code = $ result -> getExitCode ( ) ; if ( $ exit_code ) { throw new BltException ( "Unable to import setup.dump-file." ) ; } }
Imports a .sql file into the Drupal database.

@command drupal:sql:import

@aliases dsi

@validateDrushConfig
@executeInVm
Imports a . sql file into the Drupal database .