getDatabase

abstract fun getDatabase(name: String): MongoDatabase

Gets the database with the given name.

Return

the database

See also

com.mongodb.MongoNamespace

Parameters

name

the name of the database

Throws

if databaseName is invalid