(self, func_data)
| 233 | self.all_completions.add(colname) |
| 234 | |
| 235 | def extend_functions(self, func_data): |
| 236 | # func_data is a list of function metadata namedtuples |
| 237 | |
| 238 | # dbmetadata['schema_name']['functions']['function_name'] should return |
| 239 | # the function metadata namedtuple for the corresponding function |
| 240 | metadata = self.dbmetadata["functions"] |
| 241 | |
| 242 | for f in func_data: |
| 243 | schema, func = self.escaped_names([f.schema_name, f.func_name]) |
| 244 | |
| 245 | if func in metadata[schema]: |
| 246 | metadata[schema][func].append(f) |
| 247 | else: |
| 248 | metadata[schema][func] = [f] |
| 249 | |
| 250 | self.all_completions.add(func) |
| 251 | |
| 252 | self._refresh_arg_list_cache() |
| 253 | |
| 254 | def _refresh_arg_list_cache(self): |
| 255 | # We keep a cache of {function_usage:{function_metadata: function_arg_list_string}} |
no test coverage detected