(self, tablename:str)
| 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 = "" |
no test coverage detected