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

Function table_exists

skills/wiki-store/scripts/wiki_db.py:92–100  ·  view source on GitHub ↗

Return whether a SQLite table exists in the PaperFlow database.

(table_name: str)

Source from the content-addressed store, hash-verified

90
91
92def table_exists(table_name: str) -> bool:
93 """Return whether a SQLite table exists in the PaperFlow database."""
94 conn = db_ops.get_connection()
95 row = conn.execute(
96 "SELECT 1 FROM sqlite_master WHERE type = 'table' AND name = ?",
97 (table_name,),
98 ).fetchone()
99 conn.close()
100 return row is not None
101
102
103def _vector_to_blob(vector: List[float]) -> bytes:

Callers 1

all_user_idsFunction · 0.85

Calls 2

executeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected