public function setVariable(string $var, string $value, $link = DatabaseInterface::CONNECT_USER): bool;
namespace PhpMyAdmin\Dbal;
use PhpMyAdmin\ConfigStorage\Relation;
use PhpMyAdmin\DatabaseInterface;
use PhpMyAdmin\FieldMetadata;
use PhpMyAdmin\SystemDatabase;
* Main interface for database interactions
public const FETCH_NUM = 'NUM';
public const FETCH_ASSOC = 'ASSOC';
* @param string $query SQL query to execute
* @param mixed $link optional database link to use
* @param int $options optional query options
* @param bool $cache_affected_rows whether to cache affected rows
$link = DatabaseInterface::CONNECT_USER,
bool $cache_affected_rows = true
* runs a query and returns the result
* @param string $query query to run
* @param mixed $link link type
* @param int $options query options
* @param bool $cache_affected_rows whether to cache affected row