MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / all_user_ids

Function all_user_ids

skills/wiki-store/scripts/wiki_db.py:702–711  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

700
701
702def all_user_ids() -> List[str]:
703 init_wiki_schema()
704 candidate_tables = [table for table in ("profiles", "behavior_logs", "wiki_nodes") if table_exists(table)]
705 if not candidate_tables:
706 return []
707 query = "\nUNION\n".join(f"SELECT user_id FROM {table}" for table in candidate_tables)
708 conn = db_ops.get_connection()
709 rows = conn.execute(f"{query}\nORDER BY user_id").fetchall()
710 conn.close()
711 return [str(row["user_id"]) for row in rows if str(row["user_id"] or "").strip()]
712
713
714def stats(user_id: str) -> Dict[str, Any]:

Callers

nothing calls this directly

Calls 5

init_wiki_schemaFunction · 0.85
table_existsFunction · 0.85
fetchallMethod · 0.45
executeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected