|
|
|
|
|
- Properties specific to mongoDatabaseInfo variables
- Functions that use the mongoDatabaseInfo type
mongoDatabaseInfo (Variable type) 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: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. Info is mongoDatabaseInfo
Info = MongoInfo(baseMDB)
Properties Properties specific to mongoDatabaseInfo variables The following properties can be used to handle the information about a MongoDB database:
| | | Property name | Type used | Effect |
---|
AverageDocumentSize | Integer | Average size (in bytes) of documents. This size corresponds to the database size divided by the number of documents.
This property is read-only. | DataFileVersion | Character string | Version of format of disk storage disque (for mmapv1 only). The value has the following format: major.minor.
This property is read-only. | DataSize | Integer | Total 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. | FileSize | Integer | Total 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. | IndexSize | Integer | Total size (in bytes) of indexes in the database.
This property is read-only. | Name | Character string | Base name.
This property is read-only. | NamespaceSize | Integer | Total size of namespace files (files with .ns extension) for the database.
This property is read-only. | NbCollections | Integer | Number of collections in the database.
This property is read-only. | NbDocuments | Integer | Number of documents in the database (among all collections).
This property is read-only. | NbExtents | Integer | Number of extents in the database.
This property is read-only. | NbIndexes | Integer | Number of indexes.
This property is read-only. | StorageSize | Integer | Total size (in bytes) of the space used to store data.
This property is read-only. |
Remarks Functions that use the mongoDatabaseInfo type The following functions use mongoDatabaseInfo variables:
| | MongoInfo | Returns information about a MongoDB database. |
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|