PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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.
Versions 24 and later
WEBDEV - Server codeLinux This type of variable is now available for WEBDEV sites in Linux.
Linux This type of variable is now available for WINDEV applications in Linux.
New in version 24
WEBDEV - Server codeLinux This type of variable is now available for WEBDEV sites in Linux.
Linux This type of variable is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This type of variable is now available for WEBDEV sites in Linux.
Linux This type of variable is now available for WINDEV applications in Linux.
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 stringName of the database.

This property is available in 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 available in 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 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 use 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 version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment