/usr/include/libmongoc-1.0/mongoc-flags.h is in libmongoc-dev 1.9.2+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | /*
* Copyright 2013 MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MONGOC_FLAGS_H
#define MONGOC_FLAGS_H
#if !defined(MONGOC_INSIDE) && !defined(MONGOC_COMPILATION)
#error "Only <mongoc.h> can be included directly."
#endif
#include <bson.h>
BSON_BEGIN_DECLS
/**
* mongoc_delete_flags_t:
* @MONGOC_DELETE_NONE: Specify no delete flags.
* @MONGOC_DELETE_SINGLE_REMOVE: Only remove the first document matching the
* document selector.
*
* This type is only for use with deprecated functions and should not be
* used in new code. Use mongoc_remove_flags_t instead.
*
* #mongoc_delete_flags_t are used when performing a delete operation.
*/
typedef enum {
MONGOC_DELETE_NONE = 0,
MONGOC_DELETE_SINGLE_REMOVE = 1 << 0,
} mongoc_delete_flags_t;
/**
* mongoc_remove_flags_t:
* @MONGOC_REMOVE_NONE: Specify no delete flags.
* @MONGOC_REMOVE_SINGLE_REMOVE: Only remove the first document matching the
* document selector.
*
* #mongoc_remove_flags_t are used when performing a remove operation.
*/
typedef enum {
MONGOC_REMOVE_NONE = 0,
MONGOC_REMOVE_SINGLE_REMOVE = 1 << 0,
} mongoc_remove_flags_t;
/**
* mongoc_insert_flags_t:
* @MONGOC_INSERT_NONE: Specify no insert flags.
* @MONGOC_INSERT_CONTINUE_ON_ERROR: Continue inserting documents from
* the insertion set even if one fails.
*
* #mongoc_insert_flags_t are used when performing an insert operation.
*/
typedef enum {
MONGOC_INSERT_NONE = 0,
MONGOC_INSERT_CONTINUE_ON_ERROR = 1 << 0,
} mongoc_insert_flags_t;
#define MONGOC_INSERT_NO_VALIDATE (1U << 31)
/**
* mongoc_query_flags_t:
* @MONGOC_QUERY_NONE: No query flags supplied.
* @MONGOC_QUERY_TAILABLE_CURSOR: Cursor will not be closed when the last
* data is retrieved. You can resume this cursor later.
* @MONGOC_QUERY_SLAVE_OK: Allow query of replica slave.
* @MONGOC_QUERY_OPLOG_REPLAY: Used internally by Mongo.
* @MONGOC_QUERY_NO_CURSOR_TIMEOUT: The server normally times out idle
* cursors after an inactivity period (10 minutes). This prevents that.
* @MONGOC_QUERY_AWAIT_DATA: Use with %MONGOC_QUERY_TAILABLE_CURSOR. Block
* rather than returning no data. After a period, time out.
* @MONGOC_QUERY_EXHAUST: Stream the data down full blast in multiple
* "more" packages. Faster when you are pulling a lot of data and
* know you want to pull it all down.
* @MONGOC_QUERY_PARTIAL: Get partial results from mongos if some shards
* are down (instead of throwing an error).
*
* #mongoc_query_flags_t is used for querying a Mongo instance.
*/
typedef enum {
MONGOC_QUERY_NONE = 0,
MONGOC_QUERY_TAILABLE_CURSOR = 1 << 1,
MONGOC_QUERY_SLAVE_OK = 1 << 2,
MONGOC_QUERY_OPLOG_REPLAY = 1 << 3,
MONGOC_QUERY_NO_CURSOR_TIMEOUT = 1 << 4,
MONGOC_QUERY_AWAIT_DATA = 1 << 5,
MONGOC_QUERY_EXHAUST = 1 << 6,
MONGOC_QUERY_PARTIAL = 1 << 7,
} mongoc_query_flags_t;
/**
* mongoc_reply_flags_t:
* @MONGOC_REPLY_NONE: No flags set.
* @MONGOC_REPLY_CURSOR_NOT_FOUND: Cursor was not found.
* @MONGOC_REPLY_QUERY_FAILURE: Query failed, error document provided.
* @MONGOC_REPLY_SHARD_CONFIG_STALE: Shard configuration is stale.
* @MONGOC_REPLY_AWAIT_CAPABLE: Wait for data to be returned until timeout
* has passed. Used with %MONGOC_QUERY_TAILABLE_CURSOR.
*
* #mongoc_reply_flags_t contains flags supplied by the Mongo server in reply
* to a request.
*/
typedef enum {
MONGOC_REPLY_NONE = 0,
MONGOC_REPLY_CURSOR_NOT_FOUND = 1 << 0,
MONGOC_REPLY_QUERY_FAILURE = 1 << 1,
MONGOC_REPLY_SHARD_CONFIG_STALE = 1 << 2,
MONGOC_REPLY_AWAIT_CAPABLE = 1 << 3,
} mongoc_reply_flags_t;
/**
* mongoc_update_flags_t:
* @MONGOC_UPDATE_NONE: No update flags specified.
* @MONGOC_UPDATE_UPSERT: Perform an upsert.
* @MONGOC_UPDATE_MULTI_UPDATE: Continue updating after first match.
*
* #mongoc_update_flags_t is used when updating documents found in Mongo.
*/
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)
BSON_END_DECLS
#endif /* MONGOC_FLAGS_H */
|