Skip to content

Commit 74f1d69

Browse files
committed
remove count()
1 parent 9d64646 commit 74f1d69

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

filexdb/collection.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -287,18 +287,6 @@ def update(self, document: Mapping, query=None) -> JsonArray[str]:
287287

288288
return JsonArray(_doc_id)
289289

290-
def count(self, query=None, limit: tuple = None) -> int:
291-
"""
292-
Return amount of Document found.
293-
294-
:param query: Condition to search Document.
295-
:param limit: If there is any limit.
296-
:return: (int) amount of Document found.
297-
"""
298-
count = len(self.find(query=query, limit=limit))
299-
300-
return count
301-
302290
def rename(self, new_name: str) -> str:
303291
pass
304292

0 commit comments

Comments
 (0)