Spatie\DbDumper\Databases\Sqlite::dumpToFile PHP Method

dumpToFile() public method

Dump the contents of the database to a given file.
public dumpToFile ( string $dumpFile )
$dumpFile string
    public function dumpToFile(string $dumpFile)
    {
        $command = $this->getDumpCommand($dumpFile);
        $process = new Process($command);
        if (!is_null($this->timeout)) {
            $process->setTimeout($this->timeout);
        }
        $process->run();
        $this->checkIfDumpWasSuccessFul($process, $dumpFile);
    }