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

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

Detailed Description

Updates documents as part of bulk operation.

Definition at line 72 of file bulk_ops.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 (const options::ArrayFilters &)
void SetOption (const options::Hint &)

Member Enumeration Documentation

◆ Mode

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

Definition at line 74 of file bulk_ops.hpp.

Constructor & Destructor Documentation

◆ Update()

storages::mongo::bulk_ops::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::bulk_ops::Update::SetOption ( const options::Hint & )
Note
Available starting in MongoDB 4.2

◆ storages::mongo::operations::Bulk

friend class storages::mongo::operations::Bulk
friend

Definition at line 97 of file bulk_ops.hpp.


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