ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Big Data / Managing Mongo files
  • Overview
  • Handling MongoDB data in WLanguage
  • Handling a MongoDB database
  • Handling GridFS
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
Overview
MongoDB is a document-oriented NoSQL database. MongoDB stores documents in JSON format in "collections". A collection is a set of documents.
MongoDB proposes advanced methods for finding these documents.
MongoDB proposes "map reduce".
GridFS is a distributed file system managed by MongoDB.
Handling MongoDB data in WLanguage

Handling a MongoDB database

Several WLanguage types and functions allow you to handle a MongoDB database.
These functions are used to:
...
The following functions allow you to handle the MongoDB databases:
MongoAddAdds one or more documents into a collection of MongoDB database.
MongoCreateCreates a connection to a MongoDB server or cluster.
MongoCreateCollectionCreates a collection in a MongoDB database while specifying the options of this collection.
MongoDeleteAllDeletes all the documents (corresponding to the specified filter) from a collection of a MongoDB database.
MongoDeleteCollectionDeletes a collection from a MongoDB database.
MongoDeleteDatabaseDeletes a MongoDB database as well as its collections.
MongoDeleteOneDeletes a document from a collection in a MongoDB database.
MongoExecuteCommandRuns a generic command on a MongoDB database or on a MongoDB collection.
MongoFindFinds documents in a MongoDB collection.
MongoInfoReturns information about a MongoDB database.
MongoModifyAllModifies documents in a collection of a MongoDB database.
MongoModifyOneModifies a document in a collection of MongoDB database.
The following prefixed functions can also be used:
<mongoCollection variable>.AddAdds one or more documents into a collection of MongoDB database.
<mongoCollection variable>.DeleteAllDeletes all the documents (corresponding to the specified filter) from a collection of a MongoDB database.
<mongoCollection variable>.DeleteCollectionDeletes a collection from a MongoDB database.
<mongoCollection variable>.DeleteOneDeletes a document from a collection in a MongoDB database.
<mongoCollection variable>.ExecuteCommandRuns a generic command on a MongoDB collection.
<mongoCollection variable>.FindFinds documents in a MongoDB collection.
<mongoCollection variable>.ModifyAllModifies documents in a collection of a MongoDB database.
<mongoCollection variable>.ModifyOneModifies a document in a collection of MongoDB database.
<mongoDatabase variable>.CreateCollectionCreates a collection in a MongoDB database while specifying the options of this collection.
<mongoDatabase variable>.DeteleDatabaseDeletes a MongoDB database as well as its collections.
<mongoDatabase variable>.ExecuteCommandRuns a generic command on a MongoDB database.

Handling GridFS

Several WLanguage types and functions allow you to handle the GridFS file system. These functions start with mongoGridFS:
MongoGridFSDeleteFileDeletes a file identified by its name from a MongoDB file system.
MongoGridFSDeleteFileByIDDeletes a file identified by its identifier from a MongoDB file system.
MongoGridFSGetFileRetrieves (on the local computer) a file identified by its name and found in a MongoDB file system.
MongoGridFSGetFileByIDRetrieves (on the local computer) a file identified by its identifier and found in a MongoDB file system.
MongoGridFSListFileRetrieves the list of MongoDB files found in the MongoDB file system (gridFS).
MongoGridFSSendFileCopies a file from the local computer to a MongoDB file system (gridFS).
The corresponding prefixed functions are:
<mongoGridFS variable>.DeleteFileDeletes a file identified by its name from a MongoDB file system.
<mongoGridFS variable>.DeleteFileByIDDeletes a file identified by its identifier from a MongoDB file system.
<mongoGridFS variable>.GetFileRetrieves (on the local computer) a file identified by its name and found in a MongoDB file system.
<mongoGridFS variable>.GetFileByIDRetrieves (on the local computer) a file identified by its identifier and found in a MongoDB file system.
<mongoGridFS variable>.GetFileInfoUsed to get information about a MongoDB file (gridFS).
<mongoGridFS variable>.ListFileRetrieves the list of MongoDB files found in the MongoDB file system (gridFS).
<mongoGridFS variable>.SendFileCopies a file from the local computer to a MongoDB file system (gridFS).
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help