[CDRIVER-329] add distinct helper to mongoc_collection_t Created: 30/Mar/14 Updated: 18/Oct/16 Resolved: 18/Oct/16 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Christian Hergert | Assignee: | Backlog - C Driver Team |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
we need a helper for the distinct operation with mongoc_collection_t. |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 18/Oct/16 ] | |||||
|
We're still doing this via | |||||
| Comment by A. Jesse Jiryu Davis [ 20/Sep/16 ] | |||||
|
These are good arguments for a helper function. My hope is that calling "distinct" via a new helper, "mongoc_client_command_with_opts" ( Note: we haven't signed on to the CRUD Spec. Complying more with the CRUD Spec is better than complying less with it, for sure, but we still make case-by-case decisions regarding its API. | |||||
| Comment by J Rassi [ 20/Sep/16 ] | |||||
|
Re-opening for another round of consideration. My argument for why this helper should exist:
I'd suggest the following prototype:
| |||||
| Comment by Hannes Magnusson [ 02/Sep/16 ] | |||||
|
No.. Lets not. Its not healthy to have command helpers for every thing in the world (besides, we only have helpers for maybe 1/4th of all commands) Anyone who needs it should craft the command manually and use the run command interface instead |