mirror of https://gitee.com/bigwinds/arangodb
51 lines
1.6 KiB
C++
51 lines
1.6 KiB
C++
////////////////////////////////////////////////////////////////////////////////
|
|
/// DISCLAIMER
|
|
///
|
|
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
|
|
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
|
|
///
|
|
/// 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.
|
|
///
|
|
/// Copyright holder is ArangoDB GmbH, Cologne, Germany
|
|
///
|
|
/// @author Jan Steemann
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef ARANGOD_UTILS_OPERATION_OPTIONS_H
|
|
#define ARANGOD_UTILS_OPERATION_OPTIONS_H 1
|
|
|
|
#include "Basics/Common.h"
|
|
|
|
namespace arangodb {
|
|
|
|
// a struct for keeping document modification operations in transactions
|
|
struct OperationOptions {
|
|
OperationOptions() : waitForSync(false), keepNull(false), mergeObjects(false), silent(false) {}
|
|
|
|
// wait until the operation has been synced
|
|
bool waitForSync;
|
|
|
|
// keep null values on update (=true) or remove them (=false). only used for update operations
|
|
bool keepNull;
|
|
|
|
// merge objects. only used for update operations
|
|
bool mergeObjects;
|
|
|
|
// be silent. this will build smaller results and thus may speed up operations
|
|
bool silent;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|