environment->get('DB_DRIVER', 'pgsql'); return match($driver) { 'mysql', 'mysqli' => new MySQLPlatform(), 'pgsql', 'postgres', 'postgresql' => new PostgreSQLPlatform(), 'sqlite' => throw new \RuntimeException('SQLite platform not yet implemented'), default => throw new \RuntimeException("Unsupported database driver: {$driver}") }; } }