|
|
|
|
|
- Properties specific to mongoDatabase variables
- Functions that use the mongoDatabase type
mongoDatabase (Variable type) 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 changed using different WLanguage properties. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. cnxMDB is mongoConnection
cnxMDB = MongoCreate("mongodb://db1.exemple.net")
FOR EACH MaBase OF cnxMDB.Database
Trace(MaBase.Nom)
END
Properties Properties specific to mongoDatabase variables The following properties can be used to handle a MongoDB database: | | | Property name | Type used | Effect |
---|
Collection | Array of mongoCollection | Associative array containing the collections of MongoDB database. | Name | Character string | Name of MongoDB database. |
Remarks Functions that use the mongoDatabase type The following functions use mongoDatabase variables:
Prefix syntaxes can also be used:
Related Examples:
|
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.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|