How do I list DB tables with Python API?
If this is not the case, is there any other way to do this?
thanks
DBAPI has no function for this, so unfortunately you need to use SQL specific to the database engine (there is no standard way to display tables).
SHOW TABLES
SELECT tablename FROM pg_tables WHERE schemaname = 'public'
SELECT name FROM sqlite_master WHERE type = 'table'
SELECT Distinct TABLE_NAME FROM information_schema.TABLES
SELECT table_name FROM all_tables
SELECT table_name FROM tables