ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV 28 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Performs MongoDB write operations in bulk. This allows you to avoid network latency issues you would encounter if you performed the operations individually.
Example
gclCollection est un mongoCollection
tabOp est un tableau de mongoOperation
opAjout1 est un mongoOpérationAjout
opAjout1.Document = doc1
tabOp.Ajoute(opAjout1)
opAjout2 est un mongoOpérationAjout
opAjout2.Document = doc2
tabOp.Ajoute(opAjout2)
opModifie est un mongoOpérationModificationTout
opModifie.Filtre = "{ ""Nom"": ""SMITH"" }"
opModifie.Modification = "{ ""$set"": { ""Nom"": ""PAULSON"" } }"
tabOp.Ajoute(opModifie)
opSupprime est un mongoOpérationSuppressionTout
opSupprime.Filtre = "{ ""Prenom"": ""Robert"" }"
gclCollection.ExécuteLotOpérations(tabOp)
Syntax
<Result> = <Collection>.ExecuteOperations(<Operations> [, <Execution option> [, <Level of acknowledgment>]])
<Result>: Character string
Details of the completed operations.
<Collection>: Control name
Name of the mongoCollection variable that represents the collection in which the operations must be performed.
<Operations>: Array of mongoOperation variables
Array of mongoOperation variables. This array contains the variables corresponding to the operations to be performed in bulk: These write operations will be performed in bulk.
<Execution option>: Optional mongoOperationsOption variable
Name of the mongoOperationsOption variable that corresponds to the options of the bulk operations.
<Level of acknowledgment>: Optional mongoWriteConcern variable
Name of the mongoWriteConcern variable used to specify the level of acknowledgement requested for bulk operations.
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment