public function fetch(int $fetchMode = null, array $driverOptions = [])
    {
        if (null === $fetchMode) {
            $fetchMode = PDO::FETCH_ASSOC;
        }

        try {
            return $this->pdoStatement->fetch(
                    $fetchMode,
                    $driverOptions['cursorOrientation'] ?? null,
                    $driverOptions['cursorOffset'] ?? null
            );
        } catch (PDOException $pdoe) {
            throw new DatabaseException($pdoe->getMessage(), $pdoe);
        }
    }
public function fetch(int $fetchMode = null, array $driverOptions = [])
    {
        if (null === $fetchMode) {
            $fetchMode = PDO::FETCH_ASSOC;
        }

        try {
            return $this->pdoStatement->fetch(
                    $fetchMode,
                    $driverOptions['cursorOrientation'] ?? null,
                    $driverOptions['cursorOffset'] ?? null
            );
        } catch (PDOException $pdoe) {
            throw new DatabaseException($pdoe->getMessage(), $pdoe);
        }
    }
public function fetch ( int $ fetchMode = null , array $ driverOptions = [ ] ) { if ( null === $ fetchMode ) { $ fetchMode = PDO :: FETCH_ASSOC ; } try { return $ this -> pdoStatement -> fetch ( $ fetchMode , $ driverOptions [ 'cursorOrientation' ] ?? null , $ driverOptions [ 'cursorOffset' ] ?? null ) ; } catch ( PDOException $ pdoe ) { throw new DatabaseException ( $ pdoe -> getMessage ( ) , $ pdoe ) ; } }
fetch a result

@param   int    $fetchMode      optional  the mode to use for fetching the data
@param   array  $driverOptions  optional  driver specific arguments
@return  mixed
@throws  \stubbles\db\DatabaseException
@see     http://php.net/pdostatement-fetch
fetch a result