Documentation ¶
Index ¶
- func ConnectDB(dbname string) error
- func DeleteData(filterData bson.D) bool
- func GetCurColl() *mongo.Collection
- func GetCurDatabase() *mongo.Database
- func InitDB(dbname string) bool
- func InitDBWithColl(dbname string, collname string) bool
- func InsertData(data bson.M) bool
- func IsConnected() bool
- func QueryData(data bson.M) (bool, []bson.M)
- func SetCurColl(collname string) bool
- func SetCurDB(dbname string) bool
- func UpdateData(filterData bson.D, NewData bson.D) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteData ¶
func GetCurColl ¶
func GetCurColl() *mongo.Collection
func GetCurDatabase ¶
func InitDBWithColl ¶
func InsertData ¶
func IsConnected ¶
func IsConnected() bool
func SetCurColl ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.