(self, query: str)
| 67 | return cast(dict[Any, Any], row) |
| 68 | |
| 69 | def query_all(self, query: str) -> DictGenerator: |
| 70 | with self.conn.cursor() as cursor: |
| 71 | cursor.execute(query) |
| 72 | cols = [d[0].lower() for d in cursor.description] |
| 73 | for row in cursor.fetchall(): |
| 74 | yield {key: val for key, val in zip(cols, row)} |
| 75 | |
| 76 | def execute(self, statement: str) -> None: |
| 77 | with self.conn.cursor() as cursor: |
no test coverage detected