[GODRIVER-670] Move D family of types from bson package to primitive package Created: 03/Dec/18 Updated: 04/Dec/18 Resolved: 04/Dec/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | 0.1.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Currently the bson.D type family is in the bson package, but this means that no package below the bson package can handle decoding nor encoding into a BSON Document nor bson Array without the user providing additional ValueDecoder or ValueEncoder. Moving the bson.D type family to the primitive package will provide type for BSON Document and Array. To ease usage, add a type alias for primitive.D, primitive.M, and primitive.A to the bson package. |
| Comments |
| Comment by Githook User [ 04/Dec/18 ] |
|
Author: {'name': 'Kris Brandow', 'email': 'kris@mongodb.com', 'username': 'skriptble'}Message: Update codec system to use reflect.Value Add support for pointers to the BSON codec system. When doing an This change changes the ValueEncoder and ValueDecoder interfaces to use Move the bson.D family of types into the primitive package.
Change-Id: Idec68f74e354973160bd59f9f8fef009f026f943 |
| Comment by Kristofer Brandow (Inactive) [ 03/Dec/18 ] |
|
Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/435374. |