|
ejpp
Embedded JSON Database engine for C++11/14
|
View on GitHub
Class representing an EJDB query. More...
#include <ejdb.hpp>
Public Member Functions | |
| query () noexcept=default | |
| Default constructor. Results in an invalid query, not associated with a db. | |
| operator bool () const noexcept | |
| Returns whether the associated ejdb::db and represented EJDB query are both valid. | |
| query & | operator&= (const std::vector< char > &)& |
In-place $and operator. More... | |
| query && | operator&= (const std::vector< char > &)&& |
In-place $and operator. More... | |
| query & | operator&= (query)&noexcept |
In-place $and operator. More... | |
| query && | operator&= (query)&&noexcept |
In-place $and operator. More... | |
| query & | operator|= (const std::vector< char > &)& |
In-place $or operator with BSON document as operand. More... | |
| query && | operator|= (const std::vector< char > &)&& |
In-place $or operator with BSON document as operand. Rvalue overload. | |
| query & | operator|= (query)&noexcept |
In-place $or operator with ejdb::query as operand. More... | |
| query && | operator|= (query)&&noexcept |
In-place $or operator with ejdb::query as operand. Rvalue overload. More... | |
| query & | set_hints (const std::vector< char > &)& |
| Sets hints for a query. More... | |
| query && | set_hints (const std::vector< char > &)&& |
| Sets hints for a query. More... | |
Friends | |
| struct | collection |
| struct | db |
Class representing an EJDB query.
Valid queries can only be created via ejdb::db::create_query.
Should the parent ejdb::db object expire before the query, all operations performed on or with the query will fail, with any std::error_codes set to std::errc::operation_not_permitted (EPERM). The parent ejdb::db object is guaranteed to stay alive for the duration of an operation.
| query& ejdb::query::operator&= | ( | const std::vector< char > & | ) |
In-place $and operator.
| query&& ejdb::query::operator&= | ( | const std::vector< char > & | ) |
In-place $and operator.
| query && ejdb::query::operator|= | ( | const std::vector< char > & | obj | ) |
In-place $or operator with BSON document as operand.
| std::system_error | with std::errc::operation_not_permitted when query is null. |
In-place $or operator with ejdb::query as operand.
In-place $or operator with ejdb::query as operand. Rvalue overload.
| query && ejdb::query::set_hints | ( | const std::vector< char > & | obj | ) |
Sets hints for a query.
EJDB's hints documentation follows.
Available hints:
| query&& ejdb::query::set_hints | ( | const std::vector< char > & | ) |
Sets hints for a query.
EJDB's hints documentation follows.
Available hints:
1.8.6