'Commit current transaction. Calls SQL `COMMIT`.'

def commit(self):

    self.sql(u'commit')
    frappe.local.rollback_observers = []
    self.flush_realtime_log()
    self.enqueue_global_search()
    flush_local_link_count()
