I create a utility to dump the table layout information from sqlite databases. The sqlite3 docs talk about a question mark style of variable substitution in execute statements but I could not figure it out.
cursor.execute("SELECT * FROM {}".format(table_name)) # works but..
cursor.execute("SELECT * FROM (?)", (table_name, )) # does not.