On this page
MongoDB\GridFS\Bucket::getDatabaseName()
Returns the name of the database containing this bucket.
function getDatabaseName(): string
The name of the database containing this bucket as a string.
<?php$bucket = (new MongoDB\Client)->test->selectGridFSBucket();var_dump($bucket->getDatabaseName());
The output would then resemble:
string(4) "test"
Back
getChunkSizeBytes()
Next
getFileDocumentForStream()