mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-05 12:50:21 +08:00
ENH: Add autoload=True for compatibility with SQLAlchemy < 1.0.0
This commit is contained in:
@@ -56,26 +56,31 @@ class AssetFinder(object):
|
|||||||
self.equities = equities = sa.Table(
|
self.equities = equities = sa.Table(
|
||||||
'equities',
|
'equities',
|
||||||
metadata,
|
metadata,
|
||||||
|
autoload=True,
|
||||||
autoload_with=engine,
|
autoload_with=engine,
|
||||||
)
|
)
|
||||||
self.futures_exchanges = sa.Table(
|
self.futures_exchanges = sa.Table(
|
||||||
'futures_exchanges',
|
'futures_exchanges',
|
||||||
metadata,
|
metadata,
|
||||||
|
autoload=True,
|
||||||
autoload_with=engine,
|
autoload_with=engine,
|
||||||
)
|
)
|
||||||
self.futures_root_symbols = sa.Table(
|
self.futures_root_symbols = sa.Table(
|
||||||
'futures_root_symbols',
|
'futures_root_symbols',
|
||||||
metadata,
|
metadata,
|
||||||
|
autoload=True,
|
||||||
autoload_with=engine,
|
autoload_with=engine,
|
||||||
)
|
)
|
||||||
self.futures_contracts = futures_contracts = sa.Table(
|
self.futures_contracts = futures_contracts = sa.Table(
|
||||||
'futures_contracts',
|
'futures_contracts',
|
||||||
metadata,
|
metadata,
|
||||||
|
autoload=True,
|
||||||
autoload_with=engine,
|
autoload_with=engine,
|
||||||
)
|
)
|
||||||
self.asset_router = sa.Table(
|
self.asset_router = sa.Table(
|
||||||
'asset_router',
|
'asset_router',
|
||||||
metadata,
|
metadata,
|
||||||
|
autoload=True,
|
||||||
autoload_with=engine,
|
autoload_with=engine,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user