MongoDB C++ Driver
mongocxx-3.1.3
|
Class representing the optional arguments to a view creation operation. More...
#include <create_view.hpp>
Public Member Functions | |
create_view & | collation (bsoncxx::document::view_or_value collation) |
Sets the default collation for this view. More... | |
const stdx::optional< bsoncxx::document::view_or_value > & | collation () const |
Gets the default collation for this view. More... | |
create_view & | pipeline (pipeline pipeline) |
Sets the pipeline that will be used to compute this view. More... | |
const stdx::optional< class pipeline > & | pipeline () const |
Gets the pipeline that will be used to compute this view. More... | |
bsoncxx::document::value | to_document () const |
Return a bson document representing the options set on this object. More... | |
operator bsoncxx::document::value () const | |
Class representing the optional arguments to a view creation operation.
create_view& mongocxx::options::create_view::collation | ( | bsoncxx::document::view_or_value | collation | ) |
Sets the default collation for this view.
collation | The default collation for the view. |
const stdx::optional<bsoncxx::document::view_or_value>& mongocxx::options::create_view::collation | ( | ) | const |
Gets the default collation for this view.
mongocxx::options::create_view::operator bsoncxx::document::value | ( | ) | const |
To determine which options are set on this object, use the provided accessors instead.
create_view& mongocxx::options::create_view::pipeline | ( | pipeline | pipeline | ) |
Sets the pipeline that will be used to compute this view.
pipeline | Pipeline that will be used to compute the view. |
const stdx::optional<class pipeline>& mongocxx::options::create_view::pipeline | ( | ) | const |
Gets the pipeline that will be used to compute this view.
bsoncxx::document::value mongocxx::options::create_view::to_document | ( | ) | const |
Return a bson document representing the options set on this object.