[GODRIVER-161] Write first-draft of the bson.Array type Created: 14/Dec/17  Updated: 28/Oct/23  Resolved: 17/Jan/18

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

Type: New Feature Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Samuel Rossi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: GODRIVER New BSON

 Description   

The bson.Array type sits on top of the bson.Document type. Since almost nothing stores this type directly, the methods of the bson.Array type must leave the underlying bson.Document in a writeable state after each method call. This means that the Prepend and Delete methods will be especially expensive since they might have to touch every element. The Lookup and ElementAt methods are essentially the same method.

When any of the methods are provided with an element, they need to rewrite that element's key to be the proper index into the array.


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