Documentation ¶
Overview ¶
* Create by SunXiguang 2018-12-28 Desc: mongodb命令定义
* Create by SunXigaung 2019-01-25 Desc: mgo常用方法封装
mongodb客户端库mgo封装
Index ¶
Constants ¶
View Source
const ( SET = "$set" UNSET = "$unset" INC = "$inc" ADD2SET = "$addToSet" EACH = "$each" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
type Collection struct { *mgo.Session *mgo.Collection }
func GetCollection ¶
func GetCollection(dbName, collectionName string) *Collection
Click to show internal directories.
Click to hide internal directories.