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

FreeBSD Manual Pages

  
 
  

home | help
MONGOC_UPDATE_FLAGS_T(3)	   libmongoc	      MONGOC_UPDATE_FLAGS_T(3)

Flags for update operations

SYNOPSIS
	  typedef enum {
	     MONGOC_UPDATE_NONE	= 0,
	     MONGOC_UPDATE_UPSERT = 1 << 0,
	     MONGOC_UPDATE_MULTI_UPDATE	= 1 << 1,
	  } mongoc_update_flags_t;

	  #define MONGOC_UPDATE_NO_VALIDATE (1U	<< 31)

DESCRIPTION
       These  flags  correspond	to the MongoDB wire protocol. They may be bit-
       wise or'd together. The allow for modifying the way an update  is  per-
       formed in the MongoDB server.

FLAG VALUES
	    +----------------------------+----------------------------+
	    | MONGOC_UPDATE_NONE	 | No update flags set.	      |
	    +----------------------------+----------------------------+
	    | MONGOC_UPDATE_UPSERT	 | If  an  upsert  should  be |
	    |				 | performed.		      |
	    +----------------------------+----------------------------+
	    | MONGOC_UPDATE_MULTI_UPDATE | If  more  than  a   single |
	    |				 | matching  document  should |
	    |				 | be  updated.	 By   default |
	    |				 | only	the first document is |
	    |				 | updated.		      |
	    +----------------------------+----------------------------+
	    | MONGOC_UPDATE_NO_VALIDATE	 | Do not perform client side |
	    |				 | BSON	validations when per- |
	    |				 | forming an update. This is |
	    |				 | useful if you already know |
	    |				 | your	 BSON  documents  are |
	    |				 | valid.		      |
	    +----------------------------+----------------------------+

AUTHOR
       MongoDB,	Inc

COPYRIGHT
       2009-present, MongoDB, Inc.

1.30.2				 Apr 12, 2025	      MONGOC_UPDATE_FLAGS_T(3)

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

home | help