Versions in this module Expand all Collapse all v0 v0.5.0 Aug 26, 2017 Changes in this version + func RResponse(v interface{}) string + func ToBson(data string) bson.M + type DB struct + MoDb *mgo.Database + S *mgo.Session + func Connect(url string, db string) (DB, error) + func (d DB) Add(items ...interface{}) error + func (d DB) C(item interface{}, ret interface{}) error + func (d DB) Close() + func (d DB) Count(item interface{}) (int, error) + func (d DB) New(item interface{}) interface{} + func (d DB) PreVerify(item interface{}) error + func (d DB) Q(item interface{}) *mgo.Collection + func (d DB) Query(item interface{}, query interface{}) *mgo.Query + func (d DB) Remove(items ...interface{}) error + func (d DB) RemoveAll(item interface{}, query interface{}) (*mgo.ChangeInfo, error) + func (d DB) Save(items interface{}) error + func (d DB) Update(items interface{}) error + func (d DB) UpdateAll(item interface{}, query interface{}, update interface{}) (*mgo.ChangeInfo, error) + func (d DB) Upsert(item interface{}) error + type MyObject struct + Created time.Time + FieldTwo string + Id bson.ObjectId + TestField string + type O bson.M v0.5.0-beta Aug 26, 2017