SYNOPSIS
const mongoc_write_concern_t * mongoc_collection_get_write_concern ( const mongoc_collection_t *collection); void mongoc_collection_set_write_concern ( mongoc_collection_t *collection, const mongoc_write_concern_t *write_concern); const mongoc_read_prefs_t * mongoc_collection_get_read_prefs ( const mongoc_collection_t *collection); void mongoc_collection_set_read_prefs ( mongoc_collection_t *collection, const mongoc_read_prefs_t *read_prefs);
DESCRIPTION
The mongoc_collection_get_write_concern() function shall return a pointer to a mongoc_write_concern(7).
The mongoc_collection_get_read_prefs() function shall return a pointer to a mongoc_read_prefs(7).
The mongoc_collection_set_write_concern() function shall copy the provided write_concern into the given collection.
The mongoc_collection_set_read_prefs() function shall copy the provided read_prefs into the given collection.
RETURN VALUE
The mongoc_collection_get*()_ functions return a pointer to their namesake.
The mongoc_collection_set*()_ functions return no value.
ERRORS
No errors are defined.
AUTHORS
This page was written by MongoDB Inc.