mdb

package
v0.0.0-...-071347a Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombinedInd

func CombinedInd(ind []*Index) string

func ConvString

func ConvString(i interface{}) string

Types

type Index

type Index struct {
	Key   string
	IType interface{}
}

type MongoDB

type MongoDB struct {
	// contains filtered or unexported fields
}

func NewMongo

func NewMongo() *MongoDB

func (*MongoDB) CheckCollShard

func (m *MongoDB) CheckCollShard(d, c string) error

func (*MongoDB) CheckDB

func (m *MongoDB) CheckDB(key *pargs.SoftBson) bool

func (*MongoDB) CheckDBIsShard

func (m *MongoDB) CheckDBIsShard(d string) error

func (*MongoDB) Close

func (m *MongoDB) Close()

func (*MongoDB) CreateInd

func (m *MongoDB) CreateInd(indexes []*pargs.SoftBson)

func (*MongoDB) InitMongo

func (m *MongoDB) InitMongo(url string) error

func (*MongoDB) SetLogger

func (m *MongoDB) SetLogger(log *logrus.Logger)

func (*MongoDB) SetLoggerParam

func (m *MongoDB) SetLoggerParam(s *pargs.Param)

func (*MongoDB) Shared

func (m *MongoDB) Shared(s []*pargs.SoftBson)

Jump to

Keyboard shortcuts

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