package
0.0.0-20241212022123-17d08ac6bdb7
Repository: https://github.com/inhere/go-web-skeleton.git
Documentation: pkg.go.dev

# Functions

CloseSession close mgo connection session.
Connection return new mongodb connection.
DeleteById Delete a record by primary key ID.
FindAllByPage Execute the query, Paginate to get data.
FindById Finding a record by primary key ID Usage: m := &mongo.Moment{} // NOTICE: please use ref mongo.FindById("collection name", "id", m).
FindOne.
No description provided by the author
TransMapToBsonM.
TransMapToBsonM.
TransStruct2BsonM translate structure to map.
UpdateSome.
UpdateById.
WithCollection 公共方法,使用 collection 对象 Usage: error = mongo.WithCollection("name", func (conn *mgo.Collection) error { ..

# Structs

DebugLogger for mongodb.

# Interfaces

Collection mongodb collection interface.