globalsign / mgo

The MongoDB driver for Go
Other
1.97k stars 230 forks source link

Documentation improvement and mgo v2 compatibility #113

Closed dennypenta closed 6 years ago

dennypenta commented 6 years ago

If you have docs for the project I can add to the github main page and write some description. I first time see this repo, so what about compatibility with mgov2? Did it save?

domodwyer commented 6 years ago

Hi @dennypenta

The compatibility is maintained yes - this fork is a drop-in replacement of the original mgo. The docs can be found on GoDoc.

Thanks! Dom

owenhaynes commented 6 years ago

I would only say that interface compatibility is maintained. You can not drop into place over the old v2 without rewriting all your mgo paths.

a-pav commented 5 years ago

Hi @domodwyer I tried to switch from mgo.v2 to globalsign/mgo for my project but the experience was problematic. Using globalsign I get "not found" error on a simple .FindId operation while the same operation using mgo.v2 returns the document with no error. I might not be able to help you thoroughly find what's going wrong here, but; I needed to tell you that globalsign might not be completely compatible with databases previously driven by mgo.v2. BTW: the error was returned from session.go:3743, because len(findReply.Cursor.FirstBatch) == 0