[SERVER-70965] [CQF] Strong alias for ProjectionNames and FieldNames Created: 30/Oct/22  Updated: 29/Oct/23  Resolved: 09/Nov/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Svilen Mihaylov (Inactive) Assignee: Svilen Mihaylov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QO 2022-10-31, QO 2022-11-14
Participants:

 Description   

Currently both projection names and variable names are aliases for std::string. This work introduces a strong string alias which achieves the following:

 

  1. Encapsulates the string value.
  2. Prevent construction, assignment and comparison of different aliases (e.g. we cannot assign a projection to a field name).
  3. Controls initialization from strings.
  4. Optionally disallows empty strings.


 Comments   
Comment by Githook User [ 09/Nov/22 ]

Author:

{'name': 'Svilen Mihaylov', 'email': 'svilen.mihaylov@mongodb.com', 'username': 'svilen-mihaylov'}

Message: SERVER-70965 [CQF] Strong alias for ProjectionNames and FieldNames
Branch: master
https://github.com/mongodb/mongo/commit/805f480d33180f92e6f6d5fe77bec3d0da10b6df

Generated at Thu Feb 08 06:17:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.