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_cursor_t *

Author

       MongoDB, Inc

Description

       This  function shall create a copy of a mongoc_cursor_t. The cloned cursor will be reset to the beginning
       of the query, and therefore the query will be re-executed on the MongoDB server when mongoc_cursor_next()
       is called.

Parameters

cursor: A mongoc_cursor_t.

Returns

       A newly allocated mongoc_cursor_t that should be freed with mongoc_cursor_destroy()  when  no  longer  in
       use.

       WARNING:
          Failure to handle the result of this function is a programming error.

Synopsis

          mongoc_cursor_t *
          mongoc_cursor_clone (const mongoc_cursor_t *cursor);

See Also