Added the Result::affectedRows method to retrieve the number of rows affected in an update, insert or delete query