mongo

package
v0.0.0-...-cfbc2f4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GzMongo

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

GzMongo MongoDB关键部件

func (*GzMongo) ConnectDB

func (mc *GzMongo) ConnectDB(uri string)

ConnectDB 连接到指定MongoDB服务

func (*GzMongo) GetCollection

func (mc *GzMongo) GetCollection(dbName, collectionName string) *mongo.Collection

GetCollection 连接后返回指定库表的表对象

Jump to

Keyboard shortcuts

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