MongoDB\GridFS\Bucket::getBucketName()
Devuelve el nombre de este depósito.
function getBucketName(): string
El nombre de este bucket como una string.
<?php $bucket = (new MongoDB\Client)->test->getGridFSBucket(); var_dump($bucket->getBucketName());
La vista de salida se ilustrarÃa como sigue:
string(2) "fs"
En esta página
Documentación
Manual de la librerÃa PHP
Overview
Cómo empezar
Conectar
Bases de datos y colecciones
Operaciones CRUD
Agregación
Data Formats
Indexes
Ejecute un comando de base de datos
MongoDB búsqueda
Búsqueda vectorial de MongoDB
Registro y supervisión
Seguridad
Integraciones de terceros
Referencia
Compatibilidad
Documentación de la API
BSON
MongoDB\cliente
MongoDB\ClientBulkWrite
MongoDB\Database
MongoDB\colección
MongoDB\GridFS\Bucket
__construct()
borrar()
deleteByName()
downloadToStream()
downloadToStreamByName()
drop()
find()
findOne()
getBucketName()
getChunksCollection()
getChunkSizeBytes()
getDatabaseName()
getFileDocumentForStream()
getFileIdForStream()
getFilesCollection()
obtenerPreocupaciónDeLectura()
getReadPreference()
getTypeMap()
getWriteConcern()
openDownloadStream()
openDownloadStreamByName()
openUploadStream()
registerGlobalStreamWrapperAlias()
renombrar()
renameByName()
uploadFromStream()
Clases de resultado
Funciones
Clases de excepción
Problemas y Ayuda