Para agentes de IA: um índice de documentação está disponível em https://www.mongodb.com/pt-br/docs/llms.txt — as versões de markdown de todas as páginas estão disponíveis anexando .md a qualquer caminho de URL.
Menu Docs

MongoDB\Database Class

MongoDB\Database

Fornece métodos para operações comuns em um banco de dados, como executar comandos de banco de dados e gerenciar collections.

You can construct a database directly using the extension's MongoDB\Driver\Manager class or select a database from the library's MongoDB\Client class. A database may also be cloned from an existing MongoDB\Database object by using the withOptions() method.

MongoDB\Database supports the readConcern, readPreference, typeMap, and writeConcern options. If you omit an option, the database inherits the value from the Manager constructor argument or the Client object used to select the database.

Operations within the MongoDB\Database class inherit the Database's options.

Avalie esta página

Nesta página