whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
spatie
/
db-dumper
/
src
/
Databases
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/spatie/db-dumper/src/Databases/MariaDb.php
<?php namespace Spatie\DbDumper\Databases; class MariaDb extends MySql { protected bool $withSandboxMode = true; public function getDumpCommand(string $dumpFile, string $temporaryCredentialsFile): string { $quote = $this->determineQuote(); $command = [ "{$quote}{$this->dumpBinaryPath}mariadb-dump{$quote}", "--defaults-extra-file=\"{$temporaryCredentialsFile}\"", ]; $finalDumpCommand = $this->getCommonDumpCommand($command) . $this->determineSandboxMode(); return $this->echoToFile($finalDumpCommand, $dumpFile); } public function withoutSandboxMode(): self { $this->withSandboxMode = false; return $this; } public function determineSandboxMode(): string { // allow mariadb/MySQL compatability: https://mariadb.org/mariadb-dump-file-compatibility-change/ return $this->withSandboxMode ? '' : '|tail +2'; } }
Copyright ©2021 || Defacer Indonesia