Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection interface { Find(query interface{}) Query // Count() (n int, err error) // Insert(docs ...interface{}) error Remove(selector interface{}) error UpdateId(selector, update interface{}) error Upsert(selector, update interface{}) (*mgo.ChangeInfo, error) }
Collection is an interface for accessing a MongoDB collection
type Database ¶
type Database interface {
C(name string) Collection
}
Database is an interface for accessing a MongoDB database
Click to show internal directories.
Click to hide internal directories.