userver: storages::mongo::options::Hint Class Reference
Loading...
Searching...
No Matches
storages::mongo::options::Hint Class Reference

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

Detailed Description

Specifies an index to use for the query.

Warning
Only plans using the index will be considered.

Definition at line 230 of file options.hpp.

Public Member Functions

 Hint (std::string index_name)
 Specifies an index by name.
 
 Hint (formats::bson::Document index_spec)
 Specifies an index by fields covered.
 

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