Returns a list of schemas from which to suggest objects. :param schema is the schema qualification input by the user (if any)
(self, obj_typ, schema)
| 929 | return columns |
| 930 | |
| 931 | def _get_schemas(self, obj_typ, schema): |
| 932 | """Returns a list of schemas from which to suggest objects. |
| 933 | |
| 934 | :param schema is the schema qualification input by the user (if any) |
| 935 | |
| 936 | """ |
| 937 | metadata = self.dbmetadata[obj_typ] |
| 938 | if schema: |
| 939 | schema = self.escape_name(schema) |
| 940 | return [schema] if schema in metadata else [] |
| 941 | return self.search_path if self.search_path_filter else metadata.keys() |
| 942 | |
| 943 | def _maybe_schema(self, schema, parent): |
| 944 | return None if parent or schema in self.search_path else schema |
no test coverage detected