for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace N98\Magento\Command\Database\Compressor;
class Uncompressed extends AbstractCompressor
{
/**
* Returns the command line for compressing the dump file.
*
* @param string $command
* @param bool $pipe
* @return string
*/
public function getCompressingCommand($command, $pipe = true)
return $command;
}
* Returns the command line for decompressing the dump file.
* @param string $command MySQL client tool connection string
* @param string $fileName Filename (shell argument escaped)
public function getDecompressingCommand($command, $fileName, $pipe = true)
if ($this->hasPipeViewer()) {
return 'pv ' . $fileName . ' | ' . $command;
return $command . ' < ' . $fileName;
* Returns the file name for the compressed dump file.
* @param string $fileName
public function getFileName($fileName, $pipe = true)
if (substr($fileName, -4, 4) !== '.sql') {
$fileName .= '.sql';
return $fileName;