MongoDB\Driver\WriteConcern::getJournal

(mongodb >=1.0.0)

MongoDB\Driver\WriteConcern::getJournalReturns the WriteConcern's "journal" option

설명

final public bool|null MongoDB\Driver\WriteConcern::getJournal ( void )

인수

이 함수는 인수가 없습니다.

반환값

Returns the WriteConcern's "journal" option.

오류/예외

예제

Example #1 MongoDB\Driver\WriteConcern::getJournal() example

<?php

$wc 
= new MongoDB\Driver\WriteConcern(1);
var_dump($wc->getJournal());

$wc = new MongoDB\Driver\WriteConcern(10true);
var_dump($wc->getJournal());

$wc = new MongoDB\Driver\WriteConcern(10false);
var_dump($wc->getJournal());

?>

위 예제의 출력:

NULL
bool(true)
bool(false)
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top