-
Notifications
You must be signed in to change notification settings - Fork 152
Closed
Labels
featurenew featurenew feature
Milestone
Description
mongo-driver support options.CollectionOptions
while qmgo(v1.1.5) not (support only for client and database)
mongo-driver create collection:
// Collection gets a handle for a collection with the given name configured with the given CollectionOptions.
func (db *Database) Collection(name string, opts ...*options.CollectionOptions) *Collection {
return newCollection(db, name, opts...)
}
qmgo remove it:
// Collection gets collection from database
func (d *Database) Collection(name string) *Collection {
var cp *mongo.Collection
cp = d.database.Collection(name)
return &Collection{
collection: cp,
registry: d.registry,
}
}
just like Support options in database operation
Metadata
Metadata
Assignees
Labels
featurenew featurenew feature