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
connection = connect_db('./database_name.db')
table_names = [t[0] for t in connection.execute("SELECT name FROM sqlite_master WHERE type='table';")] print(table_names)