[GODRIVER-1147] Create collection Created: 19/Jun/19  Updated: 28/Oct/23  Resolved: 13/Apr/20

Status: Closed
Project: Go Driver
Component/s: CRUD
Affects Version/s: 1.0.3
Fix Version/s: 1.4.0

Type: New Feature Priority: Major - P3
Reporter: Pierre Durand Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I want to create a capped collection, but I don't see any function for that.

I guess I could use "Database.RunCommand()"...



 Comments   
Comment by Githook User [ 13/Apr/20 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: GODRIVER-1147 Add an API to create collections (#351)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/370e317e314a9433d5b0a223913ea9678bfc22da

Comment by Divjot Arora (Inactive) [ 01/Apr/20 ]

https://github.com/mongodb/mongo-go-driver/pull/351

Comment by Divjot Arora (Inactive) [ 27/Mar/20 ]

GODRIVER-1548 is already in "Needs Triage" so it will be discussed in our Monday meeting as well.

Comment by Ed Pelc [ 27/Mar/20 ]

Thanks @Divjot Arora! The other major issue I found with upgrading a large project was this issue https://jira.mongodb.org/browse/GODRIVER-1548 if you have time to discuss that'd be awesome. I'm open to doing a PR for that too. I don't know the run commands as well for this though or your preferred api yet.

Comment by Divjot Arora (Inactive) [ 27/Mar/20 ]

Hi epelc@greatcloak.com,

Thank you for the feedback regarding moving from globalsign/mgo. I've moved this ticket back into "Needs Triage" so we can re-discuss this as a team on Monday. We'll post a comment here with a decision at that time.

– Divjot

Comment by Ed Pelc [ 26/Mar/20 ]

Why was this closed? Are there not plans to make this easier in the official driver?

Upgrading from globalsign/mgo and several things like this are just flat out much less user friendly. Could this at least be added to the documentation?

Comment by Emmanuel Eppinger (Inactive) [ 24/Jun/19 ]

Hi Pierre,

 

Yup! We do not have a create collection function. You can use db.RunCommand(...) to accomplish this.

 

Thanks

Emmanuel

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