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

Function show_tables

scripts/view_db.py:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def show_tables():
19 conn = connect()
20 cursor = conn.cursor()
21 cursor.execute("SELECT name FROM sqlite_master WHERE type='table'")
22 tables = [row[0] for row in cursor.fetchall()]
23 conn.close()
24 return tables
25
26
27def show_table_schema(table_name):

Callers 1

mainFunction · 0.85

Calls 5

connectFunction · 0.85
cursorMethod · 0.80
executeMethod · 0.45
fetchallMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected