コード例 #1
0
ファイル: queries.py プロジェクト: tigeryi1998/Pyfa
def flush():
    with sd_lock:
        try:
            saveddata_session.flush()
        except Exception:
            saveddata_session.rollback()
            exc_info = sys.exc_info()
            raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
コード例 #2
0
ファイル: queries.py プロジェクト: blitzmann/Pyfa
def flush():
    with sd_lock:
        try:
            saveddata_session.flush()
        except Exception:
            saveddata_session.rollback()
            exc_info = sys.exc_info()
            raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
コード例 #3
0
ファイル: queries.py プロジェクト: webba/Pyfa
def commit():
    with sd_lock:
        try:
            saveddata_session.commit()
            saveddata_session.flush()
        except Exception:
            saveddata_session.rollback()
            exc_info = sys.exc_info()
            raise exc_info[0], exc_info[1], exc_info[2]
コード例 #4
0
ファイル: queries.py プロジェクト: xmb666/Pyfa
def flush():
    with sd_lock:
        try:
            saveddata_session.flush()
        except (KeyboardInterrupt, SystemExit):
            raise
        except Exception:
            saveddata_session.rollback()
            exc_info = sys.exc_info()
            raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])