userver: storages::mongo::operations::Update Class Reference
Loading...
Searching...
No Matches
storages::mongo::operations::Update Class Reference

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

Detailed Description

Updates documents.

Definition at line 203 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 (Mode mode, formats::bson::Document selector, formats::bson::Value update)
 Creates an update operation with an aggregation pipeline.
 Update (const Update &)
 Update (Update &&) noexcept
Update & operator= (const Update &)
Update & operator= (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::MaxServerTime &)
void SetOption (const options::Hint &)

Member Enumeration Documentation

◆ Mode

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

Definition at line 205 of file operations.hpp.

Constructor & Destructor Documentation

◆ Update()

storages::mongo::operations::Update::Update ( Mode mode,
formats::bson::Document selector,
formats::bson::Value update )

Creates an update operation with an aggregation pipeline.

Note
update must be either an update document or an aggregation pipeline array
Available starting in MongoDB 4.2

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: