feat(dump): parse dump filenames and detect MySQL variant
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace AeonDumpManager\Service;
|
||||
|
||||
/**
|
||||
* Pure version-string check, split out of DumpBinaryLocator so it's
|
||||
* unit-testable without a live Shopware kernel/DB connection. Mirrors
|
||||
* Doctrine DBAL's own AbstractMySQLDriver::createDatabasePlatformForVersion()
|
||||
* check — the stable, version-portable way to tell MariaDB from MySQL.
|
||||
*/
|
||||
class MySqlVariant
|
||||
{
|
||||
public static function isMariaDb(string $serverVersion): bool
|
||||
{
|
||||
return stripos($serverVersion, 'mariadb') !== false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user