/**
  * @param Database $database
  * @throws InvalidConfigurationException
  */
 private function createDumper(Database $database)
 {
     switch ($type = $database->getType()) {
         case Database::TYPE_MYSQL:
             $this->dumpers[$database->getName()] = new MysqlDump($database);
             break;
         default:
             throw new InvalidConfigurationException("No such type: '{$type}' found in {$database} ");
             break;
     }
 }
 /**
  * @return bool
  */
 protected function hasCompression()
 {
     return $this->database->getCompressionType() !== Database::COMPRESSION_TYPE_NONE;
 }