FireDAC.Phys.MongoDBWrapper.TMongoCollection.TInsertFlag

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TInsertFlag = (ContinueOnError, NoValidate);

C++

enum class DECLSPEC_DENUM TInsertFlag : unsigned int { ContinueOnError, NoValidate };

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 TInsertFlags set that you can pass to insert operations.

Possible values are:

Value Description

ContinueOnError

Continue inserting documents during a bulk operation even if one or more insertions fail.

NoValidate

Do not validate documents before inserting them.

The validation process can be expensive, skipping it can save you some time. Use this flag to skip the validation process when you already know that the documents that you insert are valid.

See Also