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