Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MONGOC_CURSOR_CLONE(3)		   libmongoc		MONGOC_CURSOR_CLONE(3)

SYNOPSIS
	  mongoc_cursor_t *
	  mongoc_cursor_clone (const mongoc_cursor_t *cursor);

PARAMETERS
        cursor: A mongoc_cursor_t.

DESCRIPTION
       This function shall create a copy of a mongoc_cursor_t. The cloned cur-
       sor  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.

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  er-
	  ror.

AUTHOR
       MongoDB,	Inc

COPYRIGHT
       2009-present, MongoDB, Inc.

1.30.2				 Apr 12, 2025		MONGOC_CURSOR_CLONE(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mongoc_cursor_clone&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help