public function exec(string $statement): int
    {
        if (null === $this->pdo) {
            $this->connect();
        }

        try {
            return $this->pdo->exec($statement);
        } catch (PDOException $pdoe) {
            throw new DatabaseException($pdoe->getMessage(), $pdoe);
        }
    }
public function exec(string $statement): int
    {
        if (null === $this->pdo) {
            $this->connect();
        }

        try {
            return $this->pdo->exec($statement);
        } catch (PDOException $pdoe) {
            throw new DatabaseException($pdoe->getMessage(), $pdoe);
        }
    }
public function exec ( string $ statement ) : int { if ( null === $ this -> pdo ) { $ this -> connect ( ) ; } try { return $ this -> pdo -> exec ( $ statement ) ; } catch ( PDOException $ pdoe ) { throw new DatabaseException ( $ pdoe -> getMessage ( ) , $ pdoe ) ; } }
execute an SQL statement and return the number of affected rows

@param   string  $statement      the sql statement to execute d
@return  int     number of effected rows
@throws  \stubbles\db\DatabaseException
execute an SQL statement and return the number of affected rows