ENH: Add autoload=True for compatibility with SQLAlchemy < 1.0.0

This commit is contained in:
Stewart Douglas
2015-08-12 14:14:23 -04:00
committed by jfkirk
parent ded6f8543f
commit e529df06ea
+5
View File
@@ -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,
)