Documentation
¶
Index ¶
- func CollectionNames(db string) ([]string, error)
- func Count(db, collection string, query interface{}) (int64, error)
- func DropDatabase(db string) error
- func EnsureIndex(db, collection string, selector []string) error
- func FindAll(db, collection string, query interface{}, other *conf.Other) ([]bson.M, error)
- func FindOne(db, collection string, query interface{}, other *conf.Other, ...) error
- func FindPage(db, collection string, other *conf.Other, query interface{}) ([]bson.M, error)
- func Indexes(db, collection string) []bson.M
- func Insert(db, collection string, doc interface{}) (*mongo.InsertOneResult, error)
- func IsEmpty(db, collection string) bool
- func New(command_uri string) error
- func Remove(db, collection string, selector interface{}) error
- func RemoveAll(db, collection string, selector interface{}) error
- func Update(db, collection string, where, update interface{}, other *conf.Other) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectionNames ¶
func DropDatabase ¶
func EnsureIndex ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.