Documentation
¶
Index ¶
- type DB
- func (db *DB) C(name string) *mgo.Collection
- func (db *DB) Close()
- func (db *DB) DB() *mgo.Database
- func (db *DB) DropC(name string) error
- func (db *DB) EnsureIndexKey(colName string, keys ...string) error
- func (db *DB) EnsureUniqueIndexKey(colName string, keys ...string) error
- func (db *DB) Upsert(name string, q Query, v interface{}) (updated bool, err error)
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) EnsureUniqueIndexKey ¶
Click to show internal directories.
Click to hide internal directories.