count: count the number of records in the memery. Args: collection_name: the name of the collection to count.
(self, collection_name=None)
| 155 | return self.client.delete_collection(name=collection_name) |
| 156 | |
| 157 | def count(self, collection_name=None): |
| 158 | """ |
| 159 | count: count the number of records in the memery. |
| 160 | Args: |
| 161 | collection_name: the name of the collection to count. |
| 162 | """ |
| 163 | if not collection_name: |
| 164 | collection_name = self.collection_name |
| 165 | return self.client.get_or_create_collection(name=collection_name).count() |
| 166 | |
| 167 | def reset(self): |
| 168 | """ |
no outgoing calls
no test coverage detected