dao

package
v0.0.0-...-b6fddb2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB(dbname string) error

func DeleteData

func DeleteData(filterData bson.D) bool

func GetCurColl

func GetCurColl() *mongo.Collection

func GetCurDatabase

func GetCurDatabase() *mongo.Database

func InitDB

func InitDB(dbname string) bool

func InitDBWithColl

func InitDBWithColl(dbname string, collname string) bool

func InsertData

func InsertData(data bson.M) bool

func IsConnected

func IsConnected() bool

func QueryData

func QueryData(data bson.M) (bool, []bson.M)

func SetCurColl

func SetCurColl(collname string) bool

func SetCurDB

func SetCurDB(dbname string) bool

func UpdateData

func UpdateData(filterData bson.D, NewData bson.D) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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