[GODRIVER-2009] What simple way for change used driver? Created: 14/May/21  Updated: 22/Sep/21  Resolved: 14/May/21

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

Type: Task Priority: Unknown
Reporter: Валерий Бура Assignee: Isabella Siu (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hello, I with my team use old mongo driver github.com/globalsign/mgo and we want to change them to official driver go.mongodb.org/mongo-driver.

This drivers (ofcourse) have a different types, and we can’t use both of them. Maybe exists fork in github with adapter from old to new driver.

We cannot rewrite all requests, because it will take a month or more to work. (We really have large number of requests)

Thank you for help!



 Comments   
Comment by Isabella Siu (Inactive) [ 14/May/21 ]

Hi valierii.bura@gmail.com!

We don't have an adapter for the whole driver, but the mgocompat BSON library will handle BSON more like mgo does. While its a bit old, the migration guide is a good starting point for the differences between the two drivers.

Thanks for your interest in MongoDB's Go Driver. Since this isn't a bug or feature request we're closing the issue. I see that you've already posted on the community forum, but feel free to post any further questions there.

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