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.
- duplicates
-
GODRIVER-2892 Remove all code that is only required for MongoDB 3.4 and earlier
- Closed
- is depended on by
-
GODRIVER-2862 Merge driver.BatchCursor into mongo.Cursor
- Backlog
- related to
-
GODRIVER-2743 Expose an API to create a cursor from a command response
- Closed