#include <docudb.hpp>
Definition at line 454 of file docudb.hpp.
◆ order_by()
docudb::query::order_by::order_by |
( |
std::string const & | field, |
|
|
bool | ascending = true ) |
|
inlineexplicit |
Definition at line 456 of file docudb.hpp.
457 : field_(
field), ascending_(ascending) {}
std::string const & field() const
◆ direction()
std::string_view docudb::query::order_by::direction |
( |
| ) |
const |
|
inline |
Definition at line 460 of file docudb.hpp.
460{ return ascending_ ? "ASC" : "DESC"; }
◆ field()
std::string const & docudb::query::order_by::field |
( |
| ) |
const |
|
inline |
The documentation for this struct was generated from the following file: