MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / get_all_tokens

Method get_all_tokens

src/core/database.py:992–998  ·  view source on GitHub ↗

Get all tokens

(self)

Source from the content-addressed store, hash-verified

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"""

Callers 2

lifespanFunction · 0.45
import_tokensFunction · 0.45

Calls 2

_connectMethod · 0.95
TokenClass · 0.85

Tested by

no test coverage detected