[CXX-183] Add Save() method to dbclientinterface Created: 14/Apr/14  Updated: 22/Jan/16  Resolved: 17/Jun/14

Status: Closed
Project: C++ Driver
Component/s: API
Affects Version/s: None
Fix Version/s: legacy-0.11.0

Type: New Feature Priority: Major - P3
Reporter: Tyler Brock Assignee: Tyler Brock
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The method takes a BSONObject and does one of two things:

If the object does not have an _id field it inserts the object.
If the object does have an _id field it performs an upsert where the query doc is simply {_id: <the id from the BSONObject>} and the update doc is the provided BSONObject.



 Comments   
Comment by Githook User [ 22/Jan/16 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-183 Suppress uninteresting leak from libsasl2
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/2c769011089bf4033eab5ed09b2e8df0f5fd4070

Comment by Tyler Brock [ 16/Jun/14 ]

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

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