- Reference >
- MongoDB\GridFS\Bucket Class >
- MongoDB\GridFS\Bucket::getDatabaseName()
MongoDB\GridFS\Bucket::getDatabaseName()
On this page
Definition
-
MongoDB\GridFS\Bucket::getDatabaseName
Returns the name of the database containing this bucket.
Return Values
The name of the database containing this bucket as a string.
Examples
The output would then resemble: