정의
MongoDB\Database데이터베이스 명령 실행 및 컬렉션 관리와 같은 데이터베이스의 일반적인 작업에 대한 메서드를 제공합니다.
You can construct a database directly using the extension's MongoDB\Driver\Manager class or select a database from the library's
MongoDB\Clientclass. A database may also be cloned from an existingMongoDB\Databaseobject by using thewithOptions()method.MongoDB\Databasesupports the readConcern, readPreference, typeMap, and writeConcern options. If you omit an option, the database inherits the value from the Manager constructor argument or theClientobject used to select the database.Operations within the
MongoDB\Databaseclass inherit the Database's options.