AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

MongoDB\Database クラス

MongoDB\Database

データベースコマンドの実行やコレクションの管理など、データベースに対する一般的な操作のメソッドを提供します。

拡張機能のMongoDB$Driver\Managerクラスを使用して直接データベースを構築するか、ライブラリの MongoDB\Clientクラスからデータベースを選択することができます。 メソッドを使用して、既存のMongoDB\Database withOptions()オブジェクトからデータベースをクローンすることもできます。

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.

このページを評価

項目一覧