[GODRIVER-2861] Merge driver.ListCollectionsBatchCursor into driver.BatchCursor Created: 30/May/23  Updated: 27/Jul/23  Resolved: 27/Jul/23

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Preston Vasquez Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by GODRIVER-2862 Merge driver.BatchCursor into mongo.C... Backlog
Duplicate
duplicates GODRIVER-2892 Remove all code that is only required... Closed
Related
related to GODRIVER-2743 Expose an API to create a cursor from... Closed
Quarter: FY24Q3
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Both driver.ListCollectionsBatchCursor and mongo.Cursor implement the mongo.batchCursor interface and the driver.BatchCursor abstraction.

driver.ListCollectionsBatchCursor was added in GODRIVER-1065 , the original commit on gerrithub can be found here. It is not immediately clear why drivers.ListCollectionsBatchCursor was decouple from mongo.Cursor, but it may be because the former had to support the < 3.0 legacy operation for listing a collection. The Go Driver no longer supports versions < 3.6 and so all of this logic can be deprecated.

This ticket proposes to update the operation.ListCollection#Result to return driver.BatchCursor rather than driver.ListCollectionsBatchCursor.

Definition of complete: the aforementioned change is created and any addition updates required for a green build.


Generated at Thu Feb 08 08:39:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.