I'm trying to find out a way to find the names of tables in a database(if any exist). I find that from a sqlite cli I can use:
>.tables
Then for the fields:
>PRAGMA TABLE_INFO(table_name)
This obviously doesn't work within python. Is there even a way to do this with python or should I just be using the sqlite command-line?