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

name: String

The database name.

client: Client

A reference to the client that spawned this database.

read_preference: ReadPreference

Indicates how a server should be selected for read operations.

write_concern: WriteConcern

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