ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Big Data / Managing Mongo data files
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns information about a MongoDB database.
Example
BaseMDB is mongoDatabase
infoMDB is mongoDatabaseInfo
infoMDB = BaseMDB.Info()
Trace("La base " + infoMDB.Name + " contient " + infoMDB.NbDocuments + " documents.")
gclBase is mongoDatabase

// Lecture des infos de la base en cours
clInfo is mongoDatabaseInfo = gclBase.Info()

sInfo is string = StringBuild([
	Informations sur la base MongoDB
	--------------------------------
	Nom de la base : %1
	Nombre de collections : %2
	Nombre de documents : %3
	Taille moyenne des documents : %4
	Taille totale de la base : %5
	Taille totale du stockage : %6
	],
	clInfo.Name,
	clInfo.NbCollections,
	clInfo.NbDocuments,
	LengthToString(clInfo.AverageDocumentSize),
	LengthToString(clInfo.DataSize),
	LengthToString(clInfo.StorageSize))

Info(sInfo)
Syntax
<Result> = <Database>.Info()
<Result>: mongoDatabaseInfo variable
mongoDatabaseInfo variable containing information about the database.
<Database>: mongoDatabase variable
Name of the mongoDatabase variable corresponding to the MongoDB database being handled.
Component: wd300big.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/25/2024

Send a report | Local help