Documentation ¶
Index ¶
- func AddUser(db string, username string, password string, readOnly bool) error
- func CollectionNames(db string) ([]string, error)
- func Count(db, collection string, query interface{}) (int, error)
- func DropDatabase(db string) error
- func EnsureIndex(db, collection string, selector []string) error
- func FindAll(db, collection string, query, selector, result interface{}) error
- func FindOne(db, collection string, query, selector, result interface{}) error
- func FindPage(db, collection string, page, limit int, query, selector, result interface{}) error
- func Indexes(db, collection string) ([]mgo.Index, error)
- func Insert(db, collection string, doc interface{}) error
- func IsEmpty(db, collection string) bool
- func Remove(db, collection string, selector interface{}) error
- func RemoveAll(db, collection string, selector interface{}) error
- func Update(db, collection string, selector, update interface{}) error
- func UpdateAll(db, collection string, selector, update interface{}) error
- func Upsert(db, collection string, selector, update interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectionNames ¶ added in v1.0.1
func DropDatabase ¶ added in v1.0.1
func EnsureIndex ¶ added in v1.0.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.