Module ImportFrom alias ImportFrom alias ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword Str keyword NameLoad keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword Str keyword NameLoad keyword Num keyword Dict Str Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword Str keyword NameLoad keyword Num keyword Dict Str Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword Str keyword NameLoad keyword Num keyword Dict Str Num Expr Str Expr Str Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A sqlalchemy create_engine sqlalchemy.orm sessionmaker SessionFactory N/A N/A __init__ N/A N/A self connection_string echo N/A N/A N/A N/A self engine N/A create_engine connection_string encoding utf-8 echo echo pool_recycle 3600 pool_size 20 N/A N/A self psql_test_engine N/A create_engine connection_string encoding utf-8 echo echo pool_recycle 3600 connect_args N/A connect_timeout 1 N/A N/A self ms_test_engine N/A create_engine connection_string encoding utf-8 echo echo pool_recycle 3600 connect_args N/A timeout 1 N/A N/A self my_test_engine N/A create_engine connection_string encoding utf-8 echo echo pool_recycle 3600 connect_args N/A connect_timeout 1 N/A 
        # Removing pool_timeout and max_overflow allowed the tests to pass
        self.engine = create_engine(connection_string, encoding='utf-8', echo=echo, pool_recycle=3600,
                                    pool_timeout=5, pool_size=20, max_overflow=0)
        self.psql_test_engine = create_engine(connection_string, encoding='utf-8', echo=echo, pool_recycle=3600,
                                              pool_timeout=5, max_overflow=0, connect_args={'connect_timeout': 1})
        self.ms_test_engine = create_engine(connection_string, encoding='utf-8', echo=echo, pool_recycle=3600,
                                            pool_timeout=5, max_overflow=0, connect_args={'timeout': 1})
        self.my_test_engine = create_engine(connection_string, encoding='utf-8', echo=echo, pool_recycle=3600,
                                            pool_timeout=5, max_overflow=0, connect_args={'connect_timeout': 1})
         N/A 
        # Old code
        class SessionFactory():
            def __init__(self, connection_string, echo):
                self.engine = create_engine(connection_string, encoding='utf-8', echo=echo,
                                            #pool_size=20,
                                            pool_recycle=3600)

                # Create session maker
                self.Session = sessionmaker(bind=self.engine)

            def get_session(self):
                return self.Session()

            def __repr__(self):
                return "<SessionFactory('%s')>" % (self.engine)
         N/A N/A self Session N/A sessionmaker bind N/A self engine N/A N/A self psql_test_Session N/A sessionmaker bind N/A self psql_test_engine N/A N/A self ms_test_Session N/A sessionmaker bind N/A self ms_test_engine N/A N/A self my_test_Session N/A sessionmaker bind N/A self my_test_engine N/A get_session N/A N/A self N/A N/A N/A N/A N/A self Session N/A __repr__ N/A N/A self N/A N/A N/A N/A <SessionFactory('%s')> N/A self engine N/A N/A