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

GODRIVER-2992 Add RemainingBatchLength to ChangeStream #1626

Merged

Conversation

FGasper
Copy link
Contributor

@FGasper FGasper commented Apr 29, 2024

GODRIVER-2992

Summary

This adds a RemainingBatchLength() method to ChangeStream. The new method matches Cursor’s corresponding method.

Background & Motivation

Mongosync would like to know, when iterating a change stream, when the iteration has exhausted an individual cursor batch. See JIRA for dependent tickets.

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label Apr 29, 2024
Copy link

mongodb-drivers-pr-bot bot commented Apr 29, 2024

API Change Report

./mongo

compatible changes

(*ChangeStream).RemainingBatchLength: added

@blink1073 blink1073 requested review from prestonvasquez and removed request for blink1073 May 6, 2024 19:44
@prestonvasquez prestonvasquez merged commit 1e76182 into mongodb:v1 May 7, 2024
32 of 38 checks passed
blink1073 pushed a commit to blink1073/mongo-go-driver that referenced this pull request May 8, 2024
Co-authored-by: Preston Vasquez <prestonvasquez@icloud.com>
(cherry picked from commit 1e76182)
matthewdale pushed a commit that referenced this pull request May 10, 2024
Co-authored-by: Preston Vasquez <prestonvasquez@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low Low Priority PR for Review
Projects
None yet
2 participants