-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a MariaDB driver to handle its mysqldump replacement (#5787)
* Add a MariaDB driver to handle its mysqldump replacement * Add driver file * PHPCS * Add return type hint
- Loading branch information
Showing
3 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Drush\Sql; | ||
|
||
use Drush\Exec\ExecTrait; | ||
|
||
class SqlMariaDB extends SqlMysql | ||
{ | ||
use ExecTrait; | ||
|
||
public function dumpProgram(): string | ||
{ | ||
if (self::programExists('mariadb-dump')) { | ||
return 'mariadb-dump'; | ||
} | ||
return parent::dumpProgram(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters