Apparently the SQL that was just executed can be accessed with cursor.query. Neato