[CXX-739] Add variant type for string_view_or_value Created: 11/Nov/15  Updated: 11/Jan/16  Resolved: 07/Jan/16

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Samantha Ritter (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CXX-730 string_view.data() is unsafe Closed
Related
is related to CXX-738 Add variant type for bson document vi... Closed
Epic Link: C++11 Driver MongoDB 3.2

 Description   

Similar to the bson variant type, add a type that can hold a string by view or by value. Apply universally within the driver. Additionally (see CXX-730 for details), ensure that only null-terminated strings are passed into the C driver.



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

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-739 Apply string::view_or_value elsewhere in codebase
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/3c3f8f2447e300fdec71fb13d2e81a655217cf30

Comment by Githook User [ 07/Jan/16 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-739 Apply string::view_or_value to index options
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/60054f3703586273073f28ebbfd86b62a38e9d8a

Comment by Githook User [ 06/Jan/16 ]

Author:

{u'username': u'samantharitter', u'name': u'Samantha Ritter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-739 Apply string::view_or_value to client, database, and collection
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/6559fe40dd1d8d8b6c841e5dc57bebda8e2f0636

Comment by Githook User [ 06/Jan/16 ]

Author:

{u'username': u'samantharitter', u'name': u'Samantha Ritter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-739 Tests for string::view_or_value and new comparison operators
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/17db0bfd0a23c00ddb30d0e328322fca2ba27e58

Comment by Githook User [ 06/Jan/16 ]

Author:

{u'username': u'samantharitter', u'name': u'Samantha Ritter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-739 Add comparison operators to bsoncxx::view_or_value
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/5bb06a35aedcb5be9126822312d8d28559d52bd5

Comment by Githook User [ 06/Jan/16 ]

Author:

{u'username': u'samantharitter', u'name': u'Samantha Ritter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-739 Add a string::view_or_value class
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/c8a76dbe0b35d2cf4000ba9f12c61b20eabbfd4a

Comment by Samantha Ritter (Inactive) [ 18/Dec/15 ]

code review: https://github.com/mongodb/mongo-cxx-driver/pull/403

Generated at Wed Feb 07 22:00:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.