After running a query that makes changes to the database, this can be used to determine if the operation has succeeded.
= new("db.db")
= new("UPDATE players SET upgraded = 1 WHERE score > 500")
query.Execute(db)
= query.RowsAffected()
if(affected)
world.log << "[affected] players have been upgraded."