MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / select_table

Method select_table

database/db.py:94–102  ·  view source on GitHub ↗
(self, table_name:str)

Source from the content-addressed store, hash-verified

92 return Hashing.get_md5(line)
93
94 def select_table(self, table_name:str) -> Result:
95 result = Result(table_name=table_name)
96 rows = self._select(f"Select * from {table_name}", showColumns=True)
97 if rows:
98 result.headers=list(rows[0].keys())
99 for row in rows:
100 result.rows.append(list(row.values()))
101
102 return result
103

Callers 1

selectMethod · 0.80

Calls 4

ResultClass · 0.90
keysMethod · 0.80
_selectMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected