PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
Note: See Declaring a variable for more details.
Example
Info is mongoDatabaseInfo
Info = MongoInfo(DatabaseMDB)
Remarks

Properties specific to the description of mongoDatabaseInfo variables

The following properties can be used to handle the information about a MongoDB database:
Property nameType usedEffect
NbCollectionsIntegerNumber of collections found in the database.

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

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

This property is available in read-only.
NbIndexesIntegerNumber of indexes.

This property is available in read-only.
NameCharacter stringDatabase name.

This property is available in read-only.
DataSizeIntegerTotal size (in bytes) of data found in the database.
Notes:
  • 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 available in read-only.
FileSizeIntegerTotal size (in bytes) of data files in the database.
Notes:
  • The pre-allocated space is included in this total.
  • The padding factor is included in this total.
This property is available in read-only.
IndexSizeIntegerTotal size (in bytes) of indexes in the database.

This property is available in read-only.
AverageDocumentSizeIntegerAverage size (in bytes) of documents. This size corresponds to the database size divided by the number of documents.

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

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

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

This property is available in read-only.


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 mongoDatabaseInfo type

The following functions are using the mongoDatabaseInfo variables:
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