PHP Classes

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

Recommend this page to a friend!
  Classes of walid laggoune   MongoDB Queue PHP Query Execute   vendor/mongodb/mongodb/docs/reference/method/MongoDBModelDatabaseInfo-isEmpty.txt   Download  
File: vendor/mongodb/mongodb/docs/reference/method/MongoDBModelDatabaseInfo-isEmpty.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: 815 bytes
 

Contents

Class file image Download
======================================= MongoDB\\Model\\DatabaseInfo::isEmpty() ======================================= .. default-domain:: mongodb .. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecol Definition ---------- .. phpmethod:: MongoDB\\Model\\DatabaseInfo::isEmpty() Return whether the database has any data. .. code-block:: php function isEmpty(): boolean Return Values ------------- A boolean indicating whether the database has any data. Examples -------- .. code-block:: php <?php $info = new DatabaseInfo(['empty' => true]); var_dump($info->isEmpty()); The output would then resemble:: bool(true) See Also -------- - :manual:`listDatabases </reference/command/listDatabases>` command reference in the MongoDB manual