示例#1
0
def commit_database():
    try:
        Session.commit()
    except SQLAlchemyError:
        Session.rollback()
        raise
    finally:
        Session.remove()
示例#2
0
def rollback():
    Session.rollback()

    sysconfd = g.get('sysconfd_publisher')
    if sysconfd:
        sysconfd.rollback()

    bus = g.get('bus_publisher')
    if bus:
        bus.rollback()
示例#3
0
 def rollback(self):
     Session.rollback()
     sysconfd.rollback()
     bus.rollback()
     auth_client.rollback()
示例#4
0
 def rollback(self):
     Session.rollback()
     sysconfd.rollback()
     bus.rollback()