예제 #1
0
def shutdown_session(exception=None):
    db_session.remove()
예제 #2
0
def remove_session(ex=None):
    db_session.remove()
예제 #3
0
def shutdown_session(exception=None):
    db_session.remove()
예제 #4
0
 def close_db(e = None):
     db_session.remove()
     db = g.pop('db', None)
     if db is not None:
         db.close()