Skip to content

GODRIVER-2992 Add RemainingBatchLength to ChangeStream#1626

Merged
prestonvasquez merged 3 commits intomongodb:v1from
FGasper:GODRIVER-2992-remaining-batch-change-stream
May 7, 2024
Merged

GODRIVER-2992 Add RemainingBatchLength to ChangeStream#1626
prestonvasquez merged 3 commits intomongodb:v1from
FGasper:GODRIVER-2992-remaining-batch-change-stream

Conversation

@FGasper
Copy link
Copy Markdown
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 review-priority-low Low Priority PR for Review: within 3 business days label Apr 29, 2024
@mongodb-drivers-pr-bot
Copy link
Copy Markdown
Contributor

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
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

review-priority-low Low Priority PR for Review: within 3 business days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants