|
|
|
|
|
- Properties specific to mongoDatabase variables
- Functions that use the mongoDatabase type
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 changed using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. cntMDB is mongoConnection cntMDB = MongoCreate("mongodb://db1.example.net") FOR EACH MyDatabase OF cntMDB.Database Trace(MyDatabase.Name) END
Remarks 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. |
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|