[GODRIVER-2413] Add encryptedFields to Collection.Drop Created: 09/May/22  Updated: 07/Nov/23  Resolved: 07/Nov/23

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0

Type: New Feature Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Preston Vasquez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Go Driver 2.0: Driver
Backwards Compatibility: Major Change
Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Background & Motivation

GODRIVER-2391 requires an option to Collection.Drop:

Drivers MUST have a BSON document option named ``encryptedFields`` in ``Collection.Drop()``.

See https://github.com/mongodb/mongo-go-driver/pull/913/files#r867159962 for discussion on why this is a backwards break.

Scope

  • Add a new DropCollectionOptions struct with a EncryptedFields option.


 Comments   
Comment by Githook User [ 07/Nov/23 ]

Author:

{'name': 'Preston Vasquez', 'email': 'prestonvasquez@icloud.com', 'username': 'prestonvasquez'}

Message: GODRIVER-2413 Add encryptedFields to Collection.Drop (#1446)

Co-authored-by: Kevin Albertson <kevin.albertson@mongodb.com>
Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/ea38d1c22235eb746d73165b9bd7eb2802f8c731

Generated at Thu Feb 08 08:38:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.