[CXX-507] write a few modern C++ driver examples Created: 30/Jan/15  Updated: 24/Apr/15  Resolved: 18/Feb/15

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 0.1.0

Type: Task Priority: Major - P3
Reporter: Adam Midvidy Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Epic Link: PM-123

 Description   

and make a target for them in CMake.

Rationale: people shouldn't have to read our unit tests to learn how to use our library.

We should have examples for the following:

  • list documents in a collection
  • counts
  • bulk write, update
  • using hints
  • aggregation
  • auth?
  • create index, create capped


 Comments   
Comment by Githook User [ 18/Feb/15 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: CXX-507 add bson examples
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/75dbe8ec6b8c1853c041295c4699c8302eafd010

Comment by Adam Midvidy [ 18/Feb/15 ]

https://github.com/mongodb/mongo-cxx-driver/pull/253

Comment by Adam Midvidy [ 09/Feb/15 ]

I think the primer examples are a good start, but we are going to need some C++ driver specific examples to explain how to properly handle our exceptions, and how to use bulk writes, among other things.

Comment by Adam Midvidy [ 30/Jan/15 ]

We should also make some similar examples for the bson library. Currently it is quite difficult to figure out how to use it from reading the code.

Generated at Wed Feb 07 21:59:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.