I successfully connected Python to my MySQL database with from sqlalchemy import create_engine
.
With this engine
I am able to get the data as wanted etc.
I am using
table_names = engine.table_names()
to get all the table names in the database.
What I ultimately need is the table information like #of entries, updated_time, etc.
I could do all of that with selects but I was wondering if there is also a handy function like table_names()
to do that?
Here is the query that I would like to replace by something more handy:
SELECT UPDATE_TIME
FROM information_schema.tables
WHERE TABLE_NAME = 'my_table'