FireDAC.Phys.MongoDBWrapper.TMongoCollection.TUpdateFlag

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TUpdateFlag = (Upsert, MultiUpdate);

C++

enum class DECLSPEC_DENUM TUpdateFlag : unsigned int { Upsert, MultiUpdate };

Properties

Type Visibility Source Unit Parent
enum public
FireDAC.Phys.MongoDBWrapper.pas
FireDAC.Phys.MongoDBWrapper.hpp
FireDAC.Phys.MongoDBWrapper TMongoCollection

Description

Enumerated type of flags that you can add to a TUpdateFlags set that you can pass to update operations.

Possible values are:

Value Description

MultiUpdate

Update all documents that match the specified query.

If you do not pass this flag to an update operation, it only affects the first document that matches the specified query.

Upsert

Create a new document when the specified query does not match an existing document.

See Also