Struct mongodb::db::DatabaseInner [] [src]

pub struct DatabaseInner {
    pub name: String,
    pub client: Client,
    pub read_preference: ReadPreference,
    pub write_concern: WriteConcern,
}

Interfaces with a MongoDB database.

Fields

The database name.

A reference to the client that spawned this database.

Indicates how a server should be selected for read operations.

Describes the guarantees provided by MongoDB when reporting the success of a write operation.