Files
AeonDumpManager/src/Service/MySqlVariant.php
T

18 lines
531 B
PHP

<?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;
}
}