(url)
Configure and setup the database session.
Configure and setup the database session.
Configure and setup the database session .
def configure_engine(url):
    """Configure and setup the database session."""
    # These needs to be global because of the way Flask works.
    # pylint: disable=global-statement,global-variable-not-assigned
    # TODO: Can we wrap this in a class?
    global engine, session_maker, db_session
    engine = create_engine(url)
    # Set the query class to our own AclBaseQuery
    session_maker.configure(
        autocommit=False, autoflush=False, bind=engine, query_cls=AclBaseQuery)
def configure_engine ( url ) : # These needs to be global because of the way Flask works. # pylint: disable=global-statement,global-variable-not-assigned # TODO: Can we wrap this in a class? global engine , session_maker , db_session engine = create_engine ( url ) # Set the query class to our own AclBaseQuery session_maker . configure ( autocommit = False , autoflush = False , bind = engine , query_cls = AclBaseQuery )