Closed ZeeD closed 6 years ago
FYI bound metadata is discouraged in modern SQLAlchemy, it's recommended that the bind is given explicitly when you call e.g. reflect
or create_all
. Regardless, it won't work with the TrioEngine
that you see in the repr.
The next release will make this much clearer when you try it, see CHANGELOG.md and the following error: https://github.com/RazerM/sqlalchemy_aio/blob/1f6af76ce4069bbda92ae97cdbb435367bd91534/sqlalchemy_aio/base.py#L508-L515
So you'll be able to do:
await engine.run_in_thread(metadata.reflect, engine.sync_engine)
ok thank you.
BTW: is already available a public schedule regarding the next release?
Should be this week
I cannot use the
sqlalchemy.MetaData
class, it seems to me that sqlalchemy expect a "syncronous" context manager