Woit commented on issue #15354:
URL: https://github.com/apache/airflow/issues/15354#issuecomment-950439709


   for SQLAlchemy 1.4.0
   ```py
   def _get_class_by_tablename(tablename):
       for mapper in Base.mro()[0].registry.mappers:
           if mapper.mapped_table.fullname == tablename:
               return mapper.entity()
       return None
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to