SYNOPSIS

const mongoc_write_concern_t *
mongoc_database_get_write_concern (
   const mongoc_database_t *database);

void
mongoc_database_set_write_concern (
   mongoc_database_t            *database,
   const mongoc_write_concern_t *write_concern);

const mongoc_read_prefs_t *
mongoc_database_get_read_prefs (
   const mongoc_database_t *database);

void
mongoc_database_set_read_prefs (
   mongoc_database_t         *database,
   const mongoc_read_prefs_t *read_prefs);

DESCRIPTION

The mongoc_database_get_write_concern() function shall return a pointer to a mongoc_write_concern(7).

The mongoc_database_get_read_prefs() function shall return a pointer to a mongoc_read_prefs(7).

The mongoc_database_set_write_concern() function shall copy the provided write_concern into the given database.

The mongoc_database_set_read_prefs() function shall copy the provided read_prefs into the given database.

RETURN VALUE

The mongoc_database_get*()_ functions return a pointer to their namesake.

The mongoc_database_set*()_ functions return no value.

ERRORS

No errors are defined.

SEE ALSO

AUTHORS

This page was written by MongoDB Inc.