Get all tokens
(self)
| 990 | return None |
| 991 | |
| 992 | async def get_all_tokens(self) -> List[Token]: |
| 993 | """Get all tokens""" |
| 994 | async with self._connect() as db: |
| 995 | db.row_factory = aiosqlite.Row |
| 996 | cursor = await db.execute("SELECT * FROM tokens ORDER BY created_at DESC") |
| 997 | rows = await cursor.fetchall() |
| 998 | return [Token(**dict(row)) for row in rows] |
| 999 | |
| 1000 | async def get_all_tokens_with_stats(self) -> List[Dict[str, Any]]: |
| 1001 | """Get all tokens with merged statistics in one query""" |
no test coverage detected