MongoDB\Driver\ReadConcern::__construct

(mongodb >=1.0.0)

MongoDB\Driver\ReadConcern::__construct — 새 ReadConcern 생성


설명

final public MongoDB\Driver\ReadConcern::__construct(string $level = ?)


매개변수

level
» read concern level. 클래스 상수 중 하나를 사용할 수 있지만 이에 국한되지 않습니다.

오류/예외


Examples

예제 #1 MongoDB\Driver\ReadConcern::__construct() 예제

                  
<?php

/* Unspecified read isolation level (uses the server's default behavior) */
$rc = new MongoDB\Driver\ReadConcern();

/* Request read isolation from a single replica set node */
$rc = new MongoDB\Driver\ReadConcern(MongoDB\Driver\ReadConcern::LOCAL);

/* Request read isolation from a majority of the replica set nodes */
$rc = new MongoDB\Driver\ReadConcern(MongoDB\Driver\ReadConcern::MAJORITY);

?>
                  
                

기타