Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

MongoDB::ReadConcern

Name MongoDB::ReadConcern
Version v2.2.2
Located at /usr/share/perl5
File /usr/share/perl5/MongoDB/ReadConcern.pm
Is Core No
Search CPAN for this module MongoDB::ReadConcern
Documentation MongoDB::ReadConcern
Module Details MongoDB::ReadConcern


NAME

MongoDB::ReadConcern - Encapsulate and validate a read concern


VERSION

version v2.2.2


SYNOPSIS

    $rc = MongoDB::ReadConcern->new(); # no defaults
    $rc = MongoDB::ReadConcern->new(
        level    => 'local',
    );


DESCRIPTION

A Read Concern describes the constraints that MongoDB must satisfy when reading data. Read Concern was introduced in MongoDB 3.2.


ATTRIBUTES

level

The read concern level determines the consistency level required of data being read.

The default level is undef, which means the server will use its configured default.

If the level is set to ``local'', reads will return the latest data a server has locally.

Additional levels are storage engine specific. See Read Concern in the MongoDB documentation for more details.

This may be set in a connection string with the the readConcernLevel option.


AUTHORS


COPYRIGHT AND LICENSE

This software is Copyright (c) 2020 by MongoDB, Inc.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026