[GODRIVER-330] Create Collection using Database's read and write selectors Created: 04/Apr/18  Updated: 06/Apr/18  Resolved: 06/Apr/18

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

Type: Improvement Priority: Minor - P4
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 read and write selectors for a new collection are being created in the newCollection function. The newDatabase method creates the same selectors, we should instead just use the ones from the Database instead of creating new ones.



 Comments   
Comment by Githook User [ 06/Apr/18 ]

Author:

{'email': 'kris@mongodb.com', 'name': 'Kris Brandow', 'username': 'skriptble'}

Message: Use description package and share selectors

Use description.WriteSelector for write selectors.
Use the Database's read and write selectors when creating a Collection.

GODRIVER-331
GODRIVER-330

Change-Id: I8b5ef75f265840f34a2c7bdedc9636eaac571e94
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/f9bd19938db7e8f5f9fcf1eb22c6857dfbc4e7b4

Comment by Kristofer Brandow (Inactive) [ 05/Apr/18 ]

Code Review: https://review.gerrithub.io/c/406661/.

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