| 386 | |
| 387 | |
| 388 | class AggregateResult: |
| 389 | def __init__(self, rows, cursor: Cursor, schema, total=0, warnings=None) -> None: |
| 390 | self.rows = rows |
| 391 | self.cursor = cursor |
| 392 | self.schema = schema |
| 393 | self.total = total |
| 394 | self.warnings = warnings or [] |
| 395 | |
| 396 | def __repr__(self) -> str: |
| 397 | cid = self.cursor.cid if self.cursor else -1 |
| 398 | return ( |
| 399 | f"<{self.__class__.__name__} at 0x{id(self):x} " |
| 400 | f"Rows={len(self.rows)}, Cursor={cid}>" |
| 401 | ) |
no outgoing calls
no test coverage detected