[GODRIVER-532] improved support for binary/raw data from bson.Values Created: 28/Aug/18  Updated: 27/Oct/23  Resolved: 19/Nov/18

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

Type: New Feature Priority: Major - P3
Reporter: Sam Kleinman (Inactive) Assignee: Kristofer Brandow (Inactive)
Resolution: Works as Designed Votes: 0
Labels: evg
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There's currently:

  • no bson/*Value.BinaryOK() method which is inconsistent with other types.
  • if I want to get a byte slice for a bson.Value I must know the type, it seems like a .Raw() method would be nice.


 Comments   
Comment by Sam Kleinman (Inactive) [ 10/Oct/18 ]

I'd like something that looks like:

func (v *Value) Raw() []byte { return v.data }

In addition to value accessor methods for binary data.

Comment by Kristofer Brandow (Inactive) [ 10/Sep/18 ]

Hi sam.kleinman,

Can you please elaborate on what you mean by a Raw method?

Thanks,

Kris

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