|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
A lightweight ORM builder for MongoDB using nlohmann::json. More...
#include <MongoQueryBuilder.hpp>
Public Member Functions | |
| MongoQueryBuilder (std::shared_ptr< database::MongoClient > db) | |
| MongoQueryBuilder & | where (const nlohmann::json &filter) |
| MongoGetAwaiter< ModelType > | get_async () |
| Executes a find query asynchronously and maps results to a vector of ModelType. | |
| MongoInsertAwaiter< ModelType > | insert_async (const ModelType &model) |
| Executes an INSERT query for a model. | |
Private Attributes | |
| std::shared_ptr< database::MongoClient > | db_ |
| nlohmann::json | filter_ = nlohmann::json::object() |
A lightweight ORM builder for MongoDB using nlohmann::json.
|
inline |
|
inline |
Executes a find query asynchronously and maps results to a vector of ModelType.
|
inline |
Executes an INSERT query for a model.
|
inline |
|
private |
|
private |