PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of mongoDatabase variables
  • Functions that use the mongoDatabase type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
mongoDatabase (Type of variable)
In French: mongoBase
The mongoDatabase type is used to define the characteristics of a database for a MongoDB server. These characteristics can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
cntMDB is MongoConnection
cntMDB = MongoCreate("mongodb://db1.example.net")
FOR EACH MyDatabase OF cntMDB..Database
Trace(MaDatabase..Name)
END
Remarks

Properties specific to the description of mongoDatabase variables

The following properties can be used to handle a MongoDB database:
Property nameType usedEffect
CollectionArray of mongoCollectionAssociative array containing the collections of MongoDB database.
NameCharacter stringName of MongoDB database.

Note: These properties can be handled by using one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Functions that use the mongoDatabase type

The following functions are using the mongoDatabase variables:
Versions 22 and later
MongoCreateCollection
New in version 22
MongoCreateCollection
MongoCreateCollection
Creates a collection in a MongoDB database while specifying the options of this collection.
Versions 22 and later
MongoDeteleDatabase
New in version 22
MongoDeteleDatabase
MongoDeteleDatabase
Deletes a MongoDB database as well as its collections.
Versions 22 and later
MongoExecuteCommand
New in version 22
MongoExecuteCommand
MongoExecuteCommand
Runs a generic command on a MongoDB database or on a MongoDB collection.
Versions 22 and later
MongoGridFSDeleteFile
New in version 22
MongoGridFSDeleteFile
MongoGridFSDeleteFile
Deletes a file identified by its name from a MongoDB file system.
Versions 22 and later
MongoGridFSDeleteFileById
New in version 22
MongoGridFSDeleteFileById
MongoGridFSDeleteFileById
Deletes a file identified by its identifier from a MongoDB file system.
Versions 22 and later
MongoGridFSGetFile
New in version 22
MongoGridFSGetFile
MongoGridFSGetFile
Retrieves (on the local computer) a file identified by its name and found in a MongoDB file system.
Versions 22 and later
MongoGridFSGetFileById
New in version 22
MongoGridFSGetFileById
MongoGridFSGetFileById
Retrieves (on the local computer) a file identified by its identifier and found in a MongoDB file system.
Versions 23 and later
MongoGridFSGetFileInfo
New in version 23
MongoGridFSGetFileInfo
MongoGridFSGetFileInfo
Used to get information about a MongoDB file (gridFS).
Versions 22 and later
MongoGridFSListFile
New in version 22
MongoGridFSListFile
MongoGridFSListFile
Retrieves the list of MongoDB files found in the MongoDB file system (gridFS).
Versions 22 and later
MongoGridFSSendFile
New in version 22
MongoGridFSSendFile
MongoGridFSSendFile
Copies a file from the local computer to a MongoDB file system (gridFS).
Versions 22 and later
MongoInfo
New in version 22
MongoInfo
MongoInfo
Returns information about a MongoDB database.
Related Examples:
Native access to MongoDB Unit examples (WINDEV): Native access to MongoDB
[ + ] This example shows how to use the main functions of native access to MongoDB databases: adding data, reading (searching), modifying and deleting data in the database. The example also shows functions for saving files in the MongoDB GridFS data system.
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment