|
drogon
C++14/17-based HTTP application framework
|
#include <drogon/orm/Criteria.h>#include <drogon/orm/DbClient.h>#include <string_view>#include <future>#include <memory>#include <string>#include <type_traits>#include <utility>#include <vector>#include <optional>

Go to the source code of this file.
Classes | |
| struct | drogon::orm::Filter |
| struct | drogon::orm::JoinClause |
| class | drogon::orm::BaseBuilder< T, SelectAll, Single > |
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. | |
Macros | |
| #define | unimplemented() |
Enumerations | |
| enum class | drogon::orm::JoinType { InnerJoin , LeftJoin , RightJoin , FullJoin } |
| Represents a SQL JOIN clause. | |
Functions | |
| std::string | drogon::orm::to_string (CompareOperator op) |
| std::string | drogon::orm::to_join_string (JoinType type) |
| bool | drogon::orm::isValidSqlIdentifier (const std::string &identifier) |
| Validate that a string is a safe SQL identifier. | |
Copyright 2022, Ken Matsui. All rights reserved. https://github.com/drogonframework/drogon Use of this source code is governed by a MIT license that can be found in the License file.
Drogon
| #define unimplemented | ( | ) |
|
inline |
Validate that a string is a safe SQL identifier.
Only allows alphanumeric characters, underscores, and dots (for table.column notation). This prevents SQL injection when building JOIN clauses from user-provided identifiers.
| identifier | The identifier to validate. |