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

Method _get_columns_from_table

database/PostgreSQL.py:108–120  ·  view source on GitHub ↗
(self, tablename:str)

Source from the content-addressed store, hash-verified

106 return columns
107
108 def _get_columns_from_table(self, tablename:str):
109 columns = []
110 for t in self._tables:
111 if t["table"] == tablename:
112 columns = t["columns"]
113
114 if len(columns) == 0:
115 rows = self._get_columns(tablename)
116 if rows:
117 columns = [item[0] for item in rows]
118 self._tables.append({"table":tablename, "columns":columns})
119
120 return columns
121
122 def _get_sentence(self, filter:str,operator:str='ilike', logic_operator:str='or')->str:
123 sentence = ""

Callers 1

_get_insert_sentenceMethod · 0.95

Calls 2

_get_columnsMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected