Join us Sept 17 at .local NYC! Use code WEB50 to save 50% on tickets. Learn more >
MongoDB Event
Docs Menu
Docs Home
/ / /
PHP 라이브러리 매뉴얼
/

MongoDB\Database 클래스

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\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.

MongoDB\Database 클래스 내의 작업은 데이터베이스의 옵션을 상속합니다.

돌아가기

withCollection()

이 페이지의 내용