You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/utils/dorm/mongo_get.go

16 lines
280 B

2 years ago
package dorm
import "go.mongodb.org/mongo-driver/mongo"
func (c *MongoClient) GetDb() *mongo.Client {
return c.Db
}
func (c *MongoClient) getDatabaseName() string {
return c.config.DatabaseName
}
func (c *MongoClient) getCollectionName() string {
return c.collectionName
}