mongoc_matcher_new(3)

mongoc_matcher_new3

Mongoc_matcher_new()

Usage

mongoc_matcher_t *
mongoc_matcher_new (const bson_t *query, bson_error_t *error)
   BSON_GNUC_WARN_UNUSED_RESULT BSON_GNUC_DEPRECATED;

Create a new mongoc_matcher_t using the query specification provided.

Deprecated

WARNING:

mongoc_matcher_t is deprecated and will be removed in version 2.0.

Parameters

•

query: A bson_t.

•

error: An optional location for a bson_error_t or NULL.

Errors

Errors are propagated via the error parameter.

Returns

A newly allocated mongoc_matcher_t that should be freed with mongoc_matcher_destroy() when no longer in use. Upon failure, NULL is returned and error is set. This could happen if query contains an invalid query specification.

Releases

4 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9
  2. 10
  3. 11
  4. 12

Author

MongoDB, Inc

From libmongoc-doc 1.23.1-1+deb12u3 in Debian 12 (Bookworm). Parsed by carta from the page's man source.