Skip to content

Fix: mongodb 用不了count统计 #2991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 16, 2025
Merged

Fix: mongodb 用不了count统计 #2991

merged 4 commits into from
Jun 16, 2025

Conversation

fixpng
Copy link
Contributor

@fixpng fixpng commented Jun 14, 2025

pymongo4.x版本
Collection.count和Cursor.count已删除
已删除 pymongo.collection.Collection.count() 和 pymongo.cursor.Cursor.count() 。使用 count_documents()estimated_document_count() 取而代之
fix #2982

Copy link

codecov bot commented Jun 14, 2025

Codecov Report

Attention: Patch coverage is 96.77419% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.51%. Comparing base (c647f07) to head (d5ddbb1).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
sql/engines/mongo.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2991      +/-   ##
==========================================
+ Coverage   78.48%   78.51%   +0.03%     
==========================================
  Files         125      125              
  Lines       17792    17822      +30     
==========================================
+ Hits        13964    13993      +29     
- Misses       3828     3829       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LeoQuote LeoQuote merged commit 1a90ad5 into hhyo:master Jun 16, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

请对问题进行简要的描述
2 participants