(table_name, limit=10)
| 34 | |
| 35 | |
| 36 | def show_table_data(table_name, limit=10): |
| 37 | conn = connect() |
| 38 | cursor = conn.cursor() |
| 39 | cursor.execute(f"SELECT * FROM {table_name} LIMIT {limit}") |
| 40 | rows = cursor.fetchall() |
| 41 | conn.close() |
| 42 | return rows |
| 43 | |
| 44 | |
| 45 | def show_count(table_name): |