(self, database)
| 106 | return [db[0] for db in cursor] |
| 107 | |
| 108 | def get_tables(self, database): |
| 109 | cursor = self.conn.cursor() |
| 110 | cursor.execute(f"SHOW TABLES FROM {database}") |
| 111 | return [table[0] for table in cursor] |
| 112 | |
| 113 | def run_query(self, sql): |
| 114 | cursor = self.conn.cursor() |