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

Method columns

middle/data_operation.py:184–191  ·  view source on GitHub ↗
(self, tablename:str)

Source from the content-addressed store, hash-verified

182 AnsiPrint.print_error(e)
183
184 def columns(self, tablename:str):
185 result = Result(headers=['Column Name'])
186 self._create_dbCursor()
187 columns = self._cursor._get_columns(tablename)
188 for col in columns:
189 result.rows.append([col[0]])
190
191 AnsiPrint.printResult(result)
192
193 def run_query(self, sentence:str, value_to_hight_light:str):
194 """Run the query and highlight the text that matches.

Callers 1

do_columnsMethod · 0.80

Calls 5

_create_dbCursorMethod · 0.95
ResultClass · 0.90
printResultMethod · 0.80
_get_columnsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected