PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
Returns information about a MongoDB database.
Versions 24 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
New in version 24
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
Example
BaseMDB est un mongoBase
infoMDB est un mongoBaseInfo
infoMDB = BaseMDB.Info()
Trace("La base " + infoMDB.Nom + " contient " + infoMDB.NbDocuments + " documents.")
gclBase est un mongoBase

// Lecture des infos de la base en cours
clInfo est un mongoBaseInfo = gclBase.Info()

sInfo est une chaîne = ChaîneConstruit([
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.Nom,
clInfo.NbCollections,
clInfo.NbDocuments,
TailleVersChaîne(clInfo.TailleMoyenneDocument),
TailleVersChaîne(clInfo.TailleDonnées),
TailleVersChaîne(clInfo.TailleStockage))

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