PHP Classes

File: vendor/mongodb/mongodb/docs/reference/method/MongoDBModelDatabaseInfo-getSizeOnDisk.txt

Recommend this page to a friend!
  Classes of LAGGOUNE Walid   MongoDB Queue PHP Query Execute   vendor/mongodb/mongodb/docs/reference/method/MongoDBModelDatabaseInfo-getSizeOnDisk.txt   Download  
File: vendor/mongodb/mongodb/docs/reference/method/MongoDBModelDatabaseInfo-getSizeOnDisk.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: MongoDB Queue PHP Query Execute
Query and execute multiple queries using MongoDB
Author: By
Last change:
Date: 4 years ago
Size: 878 bytes
 

Contents

Class file image Download
============================================= MongoDB\\Model\\DatabaseInfo::getSizeOnDisk() ============================================= .. default-domain:: mongodb .. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecol Definition ---------- .. phpmethod:: MongoDB\\Model\\DatabaseInfo::getSizeOnDisk() Return the total size of the database file on disk in bytes. .. code-block:: php function getSizeOnDisk(): integer Return Values ------------- The total size of the database file on disk in bytes. Examples -------- .. code-block:: php <?php $info = new DatabaseInfo(['sizeOnDisk' => 1048576]); var_dump($info->getSizeOnDisk()); The output would then resemble:: int(1048576) See Also -------- - :manual:`listDatabases </reference/command/listDatabases>` command reference in the MongoDB manual