Function makeCriteria

Synopsis

#include <orm_lib/inc/drogon/orm/RestfulController.h>

orm::Criteria makeCriteria(const Json::Value &pJson) noexcept(false)

Description

make a criteria object for searching by ORM.

Parameters:

pJson - the json object presenting search criterias. The json object must be an array of depth 3. for example: [ [ ["color","=","red"], //AND ["price","<",1000] ], //OR [ ["color","=","white"], //AND ["price","<",800], //AND ["brand","!=",null] ] ]

Return
orm::Criteria

Source

Line 87 in orm_lib/inc/drogon/orm/RestfulController.h.






Add Discussion as Guest

Log in to DocsForge