Repo2\QueryReactor\Driver\Mysqli\MysqliDriver::read PHP Method

read() public method

public read ( $link )
    public function read($link)
    {
        /* @var $link \mysqli */
        $result = $link->reap_async_query();
        if (false === $result) {
            throw $this->error($link);
        }
        if ($result instanceof \mysqli_result) {
            return new MysqliResult($result);
        }
        return new Result\NobodyResult($link->affected_rows);
    }