(self, filter:str,operator:str='ilike', logic_operator:str='or')
| 307 | return result |
| 308 | |
| 309 | def search_columns(self, filter:str,operator:str='ilike', logic_operator:str='or') -> Result: |
| 310 | result = Result(headers=['table_name','column_name']) |
| 311 | sentence = self._get_sentence(filter, operator, logic_operator).format(object_name='table_name') |
| 312 | columns = self._select(f"Select table_name,column_name from information_schema.columns where (column_name ilike {sentence}) and table_schema='public'", showColumns=True) |
| 313 | if columns: |
| 314 | for col in columns: |
| 315 | result.rows.append([col["table_name"], col["column_name"]]) |
| 316 | return result |
| 317 | |
| 318 | def get_rows(self, tablename:str, limit:int=10)->Result: |
| 319 | result = Result(table_name=tablename) |
nothing calls this directly
no test coverage detected