mongodb

package
v1.2.82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 GetMongoDb(database, url string) (*MongoDb, error)

func (*MongoDb) Delete added in v1.2.61

func (that *MongoDb) Delete(table string, where Map) int64

func (*MongoDb) Get added in v1.2.61

func (that *MongoDb) Get(table string, where Map) Map

func (*MongoDb) Insert added in v1.2.61

func (that *MongoDb) Insert(table string, data interface{}) string

func (*MongoDb) InsertMany added in v1.2.61

func (that *MongoDb) InsertMany(table string, data ...interface{}) Slice

func (MongoDb) Select added in v1.2.61

func (that MongoDb) Select(table string, where Map, page, pageRow int64) []Map

func (*MongoDb) Update added in v1.2.61

func (that *MongoDb) Update(table string, data Map, where Map) int64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL