(self, query: str)
| 138 | return cast(dict[Any, Any], cursor.fetchone()) |
| 139 | |
| 140 | def query_all(self, query: str) -> dict[Any, Any]: |
| 141 | with self.conn.cursor() as cursor: |
| 142 | cursor.execute(query.encode()) |
| 143 | return cast(dict[Any, Any], cursor.fetchall()) |
| 144 | |
| 145 | |
| 146 | # Utility functions |