From e529df06ea6fb87eab8c3b7e8df609f88bea055f Mon Sep 17 00:00:00 2001 From: Stewart Douglas Date: Wed, 12 Aug 2015 14:14:23 -0400 Subject: [PATCH] ENH: Add autoload=True for compatibility with SQLAlchemy < 1.0.0 --- zipline/assets/assets.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py index 0019aaca..271ddc44 100644 --- a/zipline/assets/assets.py +++ b/zipline/assets/assets.py @@ -56,26 +56,31 @@ class AssetFinder(object): self.equities = equities = sa.Table( 'equities', metadata, + autoload=True, autoload_with=engine, ) self.futures_exchanges = sa.Table( 'futures_exchanges', metadata, + autoload=True, autoload_with=engine, ) self.futures_root_symbols = sa.Table( 'futures_root_symbols', metadata, + autoload=True, autoload_with=engine, ) self.futures_contracts = futures_contracts = sa.Table( 'futures_contracts', metadata, + autoload=True, autoload_with=engine, ) self.asset_router = sa.Table( 'asset_router', metadata, + autoload=True, autoload_with=engine, )