[GODRIVER-2499] Use a nested struct for default transaction options Created: 21/Jul/22  Updated: 08/Jan/24

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

Type: Task Priority: Minor - P4
Reporter: Benji Rewis (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on GODRIVER-2800 Convert Session Interface to a Struct Blocked
depends on GODRIVER-2696 Allow only 0 or 1 options structs in ... Investigating
Related
is related to GODRIVER-1703 Change Session examples to use transa... Closed
Epic Link: Go Driver 2.0: Driver
Backwards Compatibility: Major Change
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   

The SessionOptions struct has fields DefaultReadConcern and DefaultWriteConcern that only apply to transactions started within the session and not to any operation within the session as the names might suggest.

We should change the name of these fields to represent that they only apply to transactions or put them within an embedded DefaultTransactionOptions struct within SessionOptions.


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