MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / _sqlite_tables

Function _sqlite_tables

tests/integration/test_session_export.py:92–100  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

90
91
92def _sqlite_tables(path: Path) -> set[str]:
93 if not path.exists():
94 return set()
95
96 with sqlite3.connect(str(path)) as conn:
97 return {
98 r[0]
99 for r in conn.execute("SELECT name FROM sqlite_master WHERE type='table'")
100 }
101
102
103def _row_count(path: Path, table: str) -> int:

Calls 4

existsMethod · 0.80
executeMethod · 0.80
setFunction · 0.50
connectMethod · 0.45

Tested by

no test coverage detected