PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV 25 feature!
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
MDBDatabase is mongoDatabase
infoMDB is mongoDatabaseInfo
infoMDB = MDBDatabase.Info()
Trace("The database " + infoMDB..Name + " contains " + infoMDB..NbDocuments + " documents.")
gclDatabase is mongoDatabase
 
// Read information about the current database
clInfo is mongoDatabaseInfo = gclDatabase.Info()
 
sInfo is string = StringBuild([
Information about the MongoDB database
--------------------------------
Name of the database: %1
Number of collections: %2
Number of documents: %3
Average size of documents: %4
Total database size: %5
Total storage size: %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 mongoDatabase variable corresponding to the MongoDB database used.
Component : wd250big.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment