ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Big Data / Managing Mongo files
  • Properties specific to mongoDatabaseInfo variables
  • Functions that use the mongoDatabaseInfo type
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
mongoDatabaseInfo (Type of variable)
In french: mongoBaseInfo
The mongoDatabaseInfo type is used to find out the characteristics of information about a MongoDB database. The characteristics of this information are returned by several WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
Info is mongoDatabaseInfo
Info = MongoInfo(DatabaseMDB)
Remarks

Properties specific to mongoDatabaseInfo variables

The following properties can be used to handle the information about a MongoDB database:
Property nameType usedEffect
AverageDocumentSizeIntegerAverage size (in bytes) of documents. This size corresponds to the database size divided by the number of documents.

This property is read-only.
DataFileVersionCharacter stringVersion of format of disk storage disque (for mmapv1 only). The value has the following format: major.minor.

This property is read-only.
DataSizeIntegerTotal size (in bytes) of data found in the database.
Remarks:
  • The padding is included in this total.
  • The scale factor affects this value.
  • The size is not reduced when reducing a document or when deleting documents.
This property is read-only.
FileSizeIntegerTotal size (in bytes) of data files in the database.
Remarks:
  • The pre-allocated space is included in this total.
  • The padding factor is included in this total.
This property is read-only.
IndexSizeIntegerTotal size (in bytes) of indexes in the database.

This property is read-only.
NameCharacter stringName of the database.

This property is read-only.
NamespaceSizeIntegerTotal size of namespace files (files with .ns extension) for the database.

This property is read-only.
NbCollectionsIntegerNumber of collections in the database.

This property is read-only.
NbDocumentsIntegerNumber of documents in the database (among all collections).

This property is read-only.
NbExtentsIntegerNumber of extents in the database.

This property is read-only.
NbIndexesIntegerNumber of indexes.

This property is read-only.
StorageSizeIntegerTotal size (in bytes) of the space used to store data.

This property is read-only.

Functions that use the mongoDatabaseInfo type

The following functions use mongoDatabaseInfo variables:
MongoInfoReturns 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 version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/23/2023

Send a report | Local help