本页面内容
MongoDB\GridFS\Bucket::getDatabaseName()
返回包含此存储桶的数据库的名称。
function getDatabaseName(): string
包含此存储桶的数据库的名称,作为字符串。
<?php$bucket = (new MongoDB\Client)->test->selectGridFSBucket();var_dump($bucket->getDatabaseName());
输出将类似于
string(4) "test"
返回
getChunkSizeBytes()
下一步
getFileDocumentForStream()