logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mongoc_matcher_new - mongoc_matcher_new()

Author

       MongoDB, Inc

Deprecated

WARNING:mongoc_matcher_t is deprecated and will be removed in version 2.0.

Errors

       Errors are propagated via the error parameter.

Name

       mongoc_matcher_new - mongoc_matcher_new()

Parameters

query: A bson_t.

       • error: An optional location for a bson_error_t or NULL.

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.

Synopsis

          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.

See Also