示例#1
0
def shutdown_session(ex=None):
    """Tears down Sqlalchemy session"""
    db_session.remove()
示例#2
0
def shutdown_session(exception=None):
    db_session.remove()
示例#3
0
def shutdown_session(exception=None):
    """Flask will automatically remove database sessions
    at the end of the request or when the application shuts down.
    """
    db_session.remove()