PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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.
MongoFindFinds documents in a MongoDB collection.
MongoCreateCreates a connection to a MongoDB server or cluster.
MongoCreateCollectionCreates a collection in a MongoDB database while specifying the options of this collection.
MongoExecuteCommandRuns a generic command on a MongoDB database or on 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.
MongoDeleteDatabaseDeletes a MongoDB database as well as its collections.
MongoDeleteCollectionDeletes a collection from a MongoDB database.
MongoDeleteAllDeletes all the documents (corresponding to the specified filter) from a collection of a MongoDB database.
MongoDeleteOneDeletes a document from a collection in a 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>.FindFinds documents in a MongoDB collection.
<mongoDatabase variable>.CreateCollectionCreates a collection in a MongoDB database while specifying the options of this collection.
<mongoDatabase variable>.ExecuteCommandRuns a generic command on a MongoDB database.
<mongoCollection variable>.ExecuteCommandRuns a generic command on 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>.DeteleDatabaseDeletes a MongoDB database as well as its collections.
<mongoCollection variable>.DeleteCollectionDeletes a collection from a MongoDB database.
<mongoCollection variable>.DeleteAllDeletes all the documents (corresponding to the specified filter) from a collection of a MongoDB database.
<mongoCollection variable>.DeleteOneDeletes a document from a collection in a MongoDB database.

Handling GridFS

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