Releases: qiniu/qmgo
Releases · qiniu/qmgo
v0.9.3
v0.9.2
v0.9.1
Fix #141
Fix #147 , the type of parameter options is changed in API NewClient()
and Open()
,
Before :
import "go.mongodb.org/mongo-driver/mongo/options"
opt := options.Client().SetAppName("example")
cli, err := Open(ctx, &Config{Uri: URI, Database: DATABASE, Coll: COLL}, opt)
After:
import (
"github.com/qiniu/qmgo/options"
opts "go.mongodb.org/mongo-driver/mongo/options"
)
opt := opts.Client().SetAppName("example")
cli, err := Open(ctx, &Config{Uri: URI, Database: DATABASE, Coll: COLL}, options.ClientOptions{ClientOptions: opt})