Find multiple records for the specified criteria. :param criteria: A JSON object representing the find query. No limit support. :param source: (Optional) The DNS record source ("ssl","virustotal","sonar_rdns",etc.) :return: The cursor from the find operation
(self, criteria, source)
| 218 | ) |
| 219 | |
| 220 | def find_multiple(self, criteria, source): |
| 221 | """ |
| 222 | Find multiple records for the specified criteria. |
| 223 | |
| 224 | :param criteria: A JSON object representing the find query. No limit support. |
| 225 | :param source: (Optional) The DNS record source ("ssl","virustotal","sonar_rdns",etc.) |
| 226 | :return: The cursor from the find operation |
| 227 | """ |
| 228 | if source != None: |
| 229 | criteria["sources.source"] = source |
| 230 | |
| 231 | check = self._mongo_connector.perform_find( |
| 232 | self.all_dns_collection, criteria, batch_size=25 |
| 233 | ) |
| 234 | return check |
| 235 | |
| 236 | def find_one(self, criteria, source): |
| 237 | """ |
no test coverage detected