SQLAlchemy - Getting a list of tables

前端 未结 9 1187
青春惊慌失措
青春惊慌失措 2020-12-08 03:40

I couldn\'t find any information about this in the documentation, but how can I get a list of tables created in SQLAlchemy?

I used the class method to create the tab

9条回答
  •  生来不讨喜
    2020-12-08 04:18

    There is a method in engine object to fetch the list of tables name. engine.table_names()

提交回复
热议问题