Skip to content
/ mgo Public
forked from globalsign/mgo

mgo改版,增加点新特性的支持,并切换为go mod进行依赖管理

License

Notifications You must be signed in to change notification settings

li-keli/mgo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

The MongoDB driver for Go

Add support for some mongodb 4.0 features, but only at an experimental stage.

add func:

// UpdateWithArrayFilters allows passing an array of filter documents that determines
// which array elements to modify for an update operation on an array field. The multi parameter
// determines whether the update should update multiple documents (true) or only one document (false).
// 
// See example: https://docs.mongodb.com/manual/reference/method/db.collection.update/#update-arrayfiltersi
// 
// Note this method is only compatible with MongoDB 3.6+.
func (c *Collection) UpdateWithArrayFilters(selector, update, arrayFilters interface{}, multi bool) (*ChangeInfo, error)

GoDoc.

A sub-package that implements the BSON specification is also included, and may be used independently of the driver.

Supported Versions

mgo is known to work well on (and has integration tests against) MongoDB v3.0, 3.2, 3.4, 3.6 and 4.0 .

About

mgo改版,增加点新特性的支持,并切换为go mod进行依赖管理

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 97.8%
  • Other 2.2%