drogon
C++14/17-based HTTP application framework
Loading...
Searching...
No Matches
Mapper.h File Reference
#include <drogon/orm/Criteria.h>
#include <drogon/orm/BaseBuilder.h>
#include <drogon/orm/DbClient.h>
#include <drogon/utils/Utilities.h>
#include <string>
#include <type_traits>
#include <vector>
Include dependency graph for Mapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  drogon::orm::internal::Traits< T, hasPrimaryKey >
struct  drogon::orm::internal::Traits< T, false >
struct  drogon::orm::internal::has_sqlForFindingByPrimaryKey< T >
struct  drogon::orm::internal::has_sqlForDeletingByPrimaryKey< T >
class  drogon::orm::Mapper< T >
 The mapper template. More...

Namespaces

namespace  drogon
 Drogon Test is a minimal effort test framework developed because the major C++ test frameworks doesn't handle async programs well. Drogon Test's syntax is inspired by both Google Test and Catch2.

Enumerations

enum class  SortOrder { ASC , DESC }

Functions

template<typename Value>
Json::Value drogon::orm::toJson (const std::vector< Value > &container)
 Convert std::vector<Value> where Value can be JSON to JSON.

Detailed Description

Author
An Tao

Copyright 2018, An Tao. All rights reserved. https://github.com/an-tao/drogon Use of this source code is governed by a MIT license that can be found in the License file.

Drogon

Function Documentation

◆ toJson()

template<typename Value>
Json::Value drogon::orm::toJson ( const std::vector< Value > & container)
inline

Convert std::vector<Value> where Value can be JSON to JSON.

Parameters
containerThe container to be converted.
Returns
Json::Value The JSON value converted.