[GODRIVER-764] bulk write operation dependencies Created: 14/Jan/19  Updated: 28/Oct/23  Resolved: 30/Jan/19

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

Type: Improvement Priority: Major - P3
Reporter: Sam Kleinman (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: evg
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

it looks the interfaces for a couple of operations have some curious dependencies:

  • BulkWrite depends on WriteModel, which presumably requires types to implement private methods (thereby ensuring that only types provided by the package can satisfy this interface,) but it's not clear from the docs which types these are or how to construct them, and it's weird from the perspective of the user.
  • DeleteOneModel DeleteManyModel and others all depend on the x/driver package (they're simple type wrappers, over x/driver types,) which means you need to pick up a dependency on the x/driver package in order to use them, which makes the whole mongo interface feel unstable.

The fix for some of this might just be documentation changes.


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