userver: userver/storages/mongo/options.hpp File Reference
Loading...
Searching...
No Matches
options.hpp File Reference

Detailed Description

Query options.

Definition in file options.hpp.

Go to the source code of this file.

#include <chrono>
#include <cstddef>
#include <cstdint>
#include <initializer_list>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include <userver/formats/bson/bson_builder.hpp>
#include <userver/formats/bson/document.hpp>
#include <userver/formats/bson/value.hpp>
+ Include dependency graph for options.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

class  storages::mongo::options::ReadPreference
 Read preference. More...
 
class  storages::mongo::options::WriteConcern
 Write concern. More...
 
class  storages::mongo::options::Unordered
 Disables ordering on bulk operations causing them to continue after an error. More...
 
class  storages::mongo::options::Upsert
 Enables insertion of a new document when update selector matches nothing. More...
 
class  storages::mongo::options::RetryDuplicateKey
 Enables automatic one-time retry of duplicate key errors. More...
 
class  storages::mongo::options::ReturnNew
 Specifies that FindAndModify should return the new version of an object. More...
 
class  storages::mongo::options::Skip
 Specifies the number of documents to skip. More...
 
class  storages::mongo::options::Limit
 Specifies the number of documents to request from the server. More...
 
class  storages::mongo::options::Projection
 Selects fields to be returned. More...
 
class  storages::mongo::options::Sort
 Sorts the results. More...
 
class  storages::mongo::options::Hint
 Specifies an index to use for the query. More...
 
class  storages::mongo::options::ArrayFilters
 Specifies an array of filter documents that determine which array elements to modify for an update operation on an array field. More...
 
class  storages::mongo::options::AllowPartialResults
 Suppresses errors on querying a sharded collection with unavailable shards. More...
 
class  storages::mongo::options::SuppressServerExceptions
 Disables exception throw on server errors, should be checked manually in WriteResult. More...
 
class  storages::mongo::options::Tailable
 Enables tailable cursor, which block at the end of capped collections. More...
 
class  storages::mongo::options::Comment
 Sets a comment for the operation, which would be visible in profile data. More...
 
class  storages::mongo::options::MaxServerTime
 Specifies the server-side time limit for the operation. More...
 

Namespaces

namespace  storages
 Components, clients and helpers for different databases and storages.
 
namespace  storages::mongo
 MongoDB client.
 
namespace  storages::mongo::options
 Collection operation options.
 

Enumerations

enum class  storages::mongo::options::ReadConcern {
  storages::mongo::options::kLocal ,
  storages::mongo::options::kMajority ,
  storages::mongo::options::kLinearizable ,
  storages::mongo::options::kAvailable
}
 Read concern. More...
 
enum class  storages::mongo::options::ForceCountImpl {
  kAggregate ,
  kCmd
}
 Selects count implementation to use: new aggregation-based or old cmd-based. More...