This represents a list of expressions.
More...
#include <query_builder.hpp>
template<expression_category list_type, typename... Args>
class mangrove::expression_list< list_type, Args >
This represents a list of expressions.
- Template Parameters
-
list_type | The category of the expressions, such as "update" or "query". |
Args... | The types of the various expressions that make up the list. |
template<expression_category list_type, typename... Args>
Constructs an expression list of the given arguments.
- Template Parameters
-
args | The individual elements of the list. |
template<expression_category list_type, typename... Args>
void mangrove::expression_list< list_type, Args >::append_to_bson |
( |
bsoncxx::builder::core & |
builder, |
|
|
bool |
wrap = false |
|
) |
| const |
|
inline |
Appends each element to a BSON code builder.
- Parameters
-
builder | A code BSON builder |
wrap | Whether to wrap individual elements inside a BSON document, e.g. "{elt1...}, {elt2, ...}, ..." |
template<expression_category list_type, typename... Args>
Casts the expression list to a BSON query of the form { expr1, expr2, ....
}
The documentation for this class was generated from the following files: