Wrapper for mongoc_collection_stats().

This function is a helper to retrieve statistics about the collection.

Property definitions

mongodb $ NativeMongoCollection :: stats
	# Wrapper for `mongoc_collection_stats()`.
	#
	# This function is a helper to retrieve statistics about the collection.
	fun stats: nullable NativeBSON import set_mongoc_error, NativeBSON.as nullable `{
		bson_error_t error;
		bson_t *reply = bson_new();
		if(!mongoc_collection_stats(self, NULL, reply, &error)){
			NativeMongoCollection_set_mongoc_error(self, &error);
			return null_NativeBSON();
		}
		return NativeBSON_as_nullable(reply);
	`}
lib/mongodb/native_mongodb.nit:465,2--476,3