MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / GetDatabase

Function GetDatabase

shared/db/mongodb.go:60–62  ·  view source on GitHub ↗

GetDatabase returns a database instance

(client *mongo.Client, cfg *MongoConfig)

Source from the content-addressed store, hash-verified

58
59// GetDatabase returns a database instance
60func GetDatabase(client *mongo.Client, cfg *MongoConfig) *mongo.Database {
61 return client.Database(cfg.Database)
62}

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected