ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Big Data / Managing Mongo data files
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Runs a generic command on a MongoDB database.
Example
BaseMDB is mongoDatabase
// Exécuter une commande sur une base MongoDB
BaseMDB.ExecuteCommand("{ ""ping"" : 1 }")
Syntax

Running a command on a MongoDB database Hide the details

<Result> = <Database>.RunCommand(<Command>)
<Result>: mongoResult variable
mongoResult variable corresponding to the result of command. If a problem occurs. ErrorInfo is used to identify the error.
<Database>: mongoDatabase variable
Name of the mongoDatabase variable corresponding to the MongoDB database where the command will be run.
<Command>: Character string, buffer or variant
Document describing the command to run. This document can be:
  • a document in JSON format. In this case, this parameter corresponds to a character string.
  • a document in BSON format. In this case, this parameter corresponds to a buffer.
  • a variant.
Component: wd300big.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/25/2024

Send a report | Local help