'`ROLLBACK` current transaction.'

def rollback(self):

    self.sql(u'rollback')
    self.begin()
    for obj in frappe.local.rollback_observers:
        if hasattr(obj, u'on_rollback'):
            obj.on_rollback()
    frappe.local.rollback_observers = []
