()
| 16 | |
| 17 | |
| 18 | def show_tables(): |
| 19 | conn = connect() |
| 20 | cursor = conn.cursor() |
| 21 | cursor.execute("SELECT name FROM sqlite_master WHERE type='table'") |
| 22 | tables = [row[0] for row in cursor.fetchall()] |
| 23 | conn.close() |
| 24 | return tables |
| 25 | |
| 26 | |
| 27 | def show_table_schema(table_name): |