mongoc_collection_stats (3) Linux Manual Page
mongoc_collection_stats() – This function is a helper to retrieve statistics about the collection.
Synopsis
bool mongoc_collection_stats (mongoc_collection_t *collection, const bson_t *options, bson_t *reply, bson_error_t *error);
Parameters
collection- A
mongoc_collection_t\&.
options- An optional
bson_tcontaining extra options to pass to thecollStatscommand.
reply- An optional location for a
bson_tto store the result.
error- An optional location for a
bson_error_torNULL\&.
Description
This function is a helper to retrieve statistics about the collection.
Errors
Errors are propagated via the error parameter.
Returns
true if successful
reply is always initialized to simplfiy memory handling.
Colophon
This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.
