Skip to content
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

new-style wire protocol implementation for find*() methods #262

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

IlyaSkriblovsky
Copy link
Contributor

@IlyaSkriblovsky IlyaSkriblovsky commented Apr 2, 2020

Starting from maxWireVersion=4 (v3.2) MongoDB migrated to new implementation of CRUD methods based on commands commands instead of OP_* low-level message codes.

We already support new-style commands for insert, update, replace and delete (when called as *_one/*_many). This patch adds support for find*() methods too and uses it by default if maxWireVersion ≥ 4.

This also (hopefully) makes txmongo compatible with Azure's Cosmos DB that only supports new-style API.

In future this will allow us to support sessions and transactions because it only supported for new-style queries.

@coveralls
Copy link

coveralls commented Apr 2, 2020

Coverage Status

Coverage decreased (-2.9%) to 90.754% when pulling 4a6a6fa on IlyaSkriblovsky:new-style-find into 1a1ee6e on twisted:master.

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.

None yet

2 participants