Documentation ¶
Index ¶
- type ConfigDocument
- type DBObject
- func (o *DBObject) Count(s *mgo.Session, tabName string, query interface{}) (ret error, count int)
- func (o *DBObject) EnsureIndex(s *mgo.Session, tabName string, indexs []mgo.Index) error
- func (o *DBObject) ForEach(s *mgo.Session, tabName string, query interface{}, sort string, ...)
- func (o *DBObject) Get(s *mgo.Session, tabName string, query, res interface{}) error
- func (o *DBObject) GetAll(s *mgo.Session, tabName, sort string, skip, limit int, ...) error
- func (o *DBObject) GetById(s *mgo.Session, tabName string, id, res interface{}) error
- func (o *DBObject) Insert(s *mgo.Session, tabName string, doc interface{}) error
- func (o *DBObject) InsertArray(s *mgo.Session, tabName string, docs []interface{}) error
- func (o *DBObject) RemoveAll(s *mgo.Session, tabName string, query interface{}) error
- func (o *DBObject) RemoveById(s *mgo.Session, tabName string, id interface{}) error
- func (o *DBObject) UpdateById(s *mgo.Session, tabName string, id, update interface{}) error
- func (o *DBObject) UpsertById(s *mgo.Session, tabName string, id, update interface{}) error
- func (o *DBObject) UpsertData(s *mgo.Session, tableName string, doc interface{}, keys []KeyPairs) error
- type KeyPairs
- type QueryType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigDocument ¶
type DBObject ¶
type DBObject struct { DBname string Config ConfigDocument }
func (*DBObject) EnsureIndex ¶
func (*DBObject) InsertArray ¶
func (*DBObject) RemoveById ¶
func (*DBObject) UpdateById ¶
func (*DBObject) UpsertById ¶
Click to show internal directories.
Click to hide internal directories.