[GODRIVER-916] Cursor method to decode all results into a slice Created: 01/Apr/19  Updated: 28/Oct/23  Resolved: 19/Apr/19

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

Type: New Feature Priority: Major - P3
Reporter: Scott L'Hommedieu (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
backported by GODRIVER-986 Backport "Cursor method to decode all... Closed
Related
related to GODRIVER-30 Implement MGO API Closed

 Description   

Provide a method to return all remaining documents as a slice

This will be functionally equivalent to mgo's All method.



 Comments   
Comment by Githook User [ 24/Apr/19 ]

Author:

{'email': 'divjot.arora@10gen.com', 'name': 'Divjot Arora', 'username': 'divjotarora'}

Message: Add All method to mongo.Cursor

GODRIVER-916

Change-Id: I6eca805d21a1950b6cee808248ec6edbd9dcf8bc
Branch: release/1.0
https://github.com/mongodb/mongo-go-driver/commit/506e97a47d61e64e21edf6a82095b97d287e850b

Comment by Githook User [ 19/Apr/19 ]

Author:

{'email': 'divjot.arora@10gen.com', 'name': 'Divjot Arora', 'username': 'divjotarora'}

Message: Add All method to mongo.Cursor

GODRIVER-916

Change-Id: I6eca805d21a1950b6cee808248ec6edbd9dcf8bc
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/305bc4a5e4131420fe8ba5628e6faa9e6ade4e86

Comment by Divjot Arora (Inactive) [ 15/Apr/19 ]

CR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/450304

Comment by Ian Whalen (Inactive) [ 15/Apr/19 ]

divjot.arora can you please link to the CR?

Comment by David Golden [ 01/Apr/19 ]

For API design, please consider whether it should work like append: take a user-provided slice and try to fill it if it can or return a different slice if the original isn't large enough.

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