MongoDatabase

A single MongoDB instance can store multiple databases.

Each database has a unique name and isolates applications to avoid name collisions even if two applications use the same MongoCollection name.

To obtain a database, see MongoClient.database.

To obtain a collection, see collection.

Properties

Link copied to clipboard
abstract val client: MongoClient

The MongoClient which created this database.

Link copied to clipboard
abstract val name: String

The unique name of this database.

Functions

Link copied to clipboard