Documentation ¶
Index ¶
- type MongoDb
- func (that *MongoDb) Delete(table string, where Map) int64
- func (that *MongoDb) Get(table string, where Map) Map
- func (that *MongoDb) Insert(table string, data interface{}) string
- func (that *MongoDb) InsertMany(table string, data ...interface{}) Slice
- func (that MongoDb) Select(table string, where Map, page, pageRow int64) []Map
- func (that *MongoDb) Update(table string, data Map, where Map) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDb ¶ added in v1.2.61
type MongoDb struct { Client *mongo.Client Ctx context.Context DataBase *mongo.Database Connect *mongo.Collection LastErr error }
func GetMongoDb ¶ added in v1.2.61
func (*MongoDb) InsertMany ¶ added in v1.2.61
Click to show internal directories.
Click to hide internal directories.