FireDAC.Phys.MongoDBWrapper.TMongoWriteConcern.TWriteLevel
Delphi
TWriteLevel = (Default, ErrorsIgnored, Unacknowledged, Majority);
C++
enum class DECLSPEC_DENUM TWriteLevel : unsigned int { Default, ErrorsIgnored, Unacknowledged, Majority };
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| enum | public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp |
FireDAC.Phys.MongoDBWrapper | TMongoWriteConcern |
Description
TWriteLevel is used to specify levels of conceptual write concern.
The write concern level tells the driver what level of acknowledgment to await from the server.
The TWriteLevel type defines the following values:
Default: This level is right for the great majority of applications. By default, writes block awaiting acknowledgment from MongoDB. Acknowledged write concern allows clients to catch network, duplicate key, and other errors.ErrorsIgnored: This level is similar to theUnacknowledgedlevel (see the Note below).Unacknowledged: With an unacknowledged write concern, MongoDB does not acknowledge the receipt of write operations.
Note:
Unacknowledgedis similar toErrorsIgnoredlevel. However, drivers will attempt to receive and handle network errors when possible. The ability of the driver to detect network errors depends on the networking configuration of the system.
Majority: Block until a write has been propagated to a majority of the nodes in the replica set.