MongoDB C++ Driver legacy-1.1.2
Loading...
Searching...
No Matches
write_options.h
1/* Copyright 2014 MongoDB Inc.
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#pragma once
17
18namespace mongo {
19
23
27
30
31 // TODO: upsert, and multi are per item in a batch, this is for the whole batch
34};
35
39
42};
43
50
53
54};
55
56} // namespace mongo
Utility functions for parsing numbers from strings.
Definition compare_numbers.h:20
InsertOptions
need to put in DbMesssage::ReservedOptions as well
Definition write_options.h:47
@ InsertOption_BypassDocumentValidation
Disables document validation for this operation.
Definition write_options.h:52
@ InsertOption_ContinueOnError
With muli-insert keep processing inserts if one fails.
Definition write_options.h:49
RemoveOptions
Definition write_options.h:36
@ RemoveOption_Broadcast
flag from mongo saying this update went everywhere
Definition write_options.h:41
@ RemoveOption_JustOne
only delete one option
Definition write_options.h:38
UpdateOptions
Definition write_options.h:20
@ UpdateOption_Multi
Update multiple documents (if multiple documents match query expression).
Definition write_options.h:26
@ UpdateOption_Upsert
Upsert - that is, insert the item if no matching item is found.
Definition write_options.h:22
@ UpdateOption_BypassDocumentValidation
Disables document validation for this operation.
Definition write_options.h:33
@ UpdateOption_Broadcast
flag from mongo saying this update went everywhere
Definition write_options.h:29