Documentation ¶
Index ¶
- func Do(fn func(db *mgo.Database) error) error
- func FindAll(collection string, query interface{}, result interface{}) error
- func FindByID(collection string, id interface{}, result interface{}) error
- func FindOne(collection string, query interface{}, result interface{}) error
- func Insert(collection string, docs ...interface{}) error
- func QueryCount(collection string, query interface{}) (int, error)
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryCount ¶
QueryCount 根据条件查询记录数
Types ¶
Click to show internal directories.
Click to hide internal directories.