|
The MongoDB\Driver\ReadConcern classIntroductionMongoDB\Driver\ReadConcern controls the level of isolation for read operations for replica sets and replica set shards. This option requires MongoDB 3.2 or later. Class synopsisMongoDB\Driver\ReadConcern
final
class MongoDB\Driver\ReadConcern
implements
MongoDB\BSON\Serializable, Serializable {
/* Constants */
const
string
MongoDB\Driver\ReadConcern::AVAILABLE = "available";
const
string
MongoDB\Driver\ReadConcern::LINEARIZABLE = "linearizable";
const
string
MongoDB\Driver\ReadConcern::LOCAL = "local";
const
string
MongoDB\Driver\ReadConcern::MAJORITY = "majority";
const
string
MongoDB\Driver\ReadConcern::SNAPSHOT = "snapshot";
/* Methods */
final public stdClass bsonSerialize()
final public __construct(stringnull
$level = null )final public stringnull getLevel()
final public bool isDefault()
final public string serialize()
final public void unserialize(string
}$data )Predefined Constants
Changelog
See Also
|