userver: storages::mongo::operations::Update Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
storages::mongo::operations::Update Class Reference

#include <userver/storages/mongo/operations.hpp>

Detailed Description

Updates documents.

Definition at line 193 of file operations.hpp.

Public Types

enum class  Mode {
  kSingle ,
  kMulti
}
 

Public Member Functions

 Update (Mode mode, formats::bson::Document selector, formats::bson::Document update)
 
 Update (const Update &)
 
 Update (Update &&) noexcept
 
Updateoperator= (const Update &)
 
Updateoperator= (Update &&) noexcept
 
void SetOption (options::Upsert)
 
void SetOption (options::RetryDuplicateKey)
 
void SetOption (options::WriteConcern::Level)
 
void SetOption (const options::WriteConcern &)
 
void SetOption (options::SuppressServerExceptions)
 
void SetOption (const options::ArrayFilters &)
 
void SetOption (const options::Hint &)
 

Member Enumeration Documentation

◆ Mode

enum class storages::mongo::operations::Update::Mode
strong

Definition at line 195 of file operations.hpp.

Member Function Documentation

◆ SetOption()

void storages::mongo::operations::Update::SetOption ( const options::Hint & )
Note
Available starting in MongoDB 4.2.1

The documentation for this class was generated from the following file: