ORM C++
Loading...
Searching...
No Matches
payload.cppm File Reference
module orm
#include <algorithm>
#include <compare>
#include <cstddef>
#include <format>
#include <optional>
#include <sstream>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <utility>
#include <variant>
#include <vector>
import orm:sql_contracts;
import orm.reflection;
Include dependency graph for payload.cppm:

Go to the source code of this file.

Classes

struct  orm::db::binding::BindingPayload< T, SchemaType, JoinedValues >
struct  orm::db::binding::PrimaryKeyLess
struct  orm::db::binding::IsOptional< T >
struct  orm::db::binding::IsOptional< std::optional< T > >

Namespaces

namespace  orm
namespace  orm::db
namespace  orm::db::binding

Functions

auto orm::db::binding::toQueryValue (const query::QueryValue &value) -> query::QueryValue
template<typename T>
auto orm::db::binding::toPrimaryKeyValue (const T &value, const std::string &fieldName) -> query::QueryValue
template<typename SchemaType, typename T>
auto orm::db::binding::getPrimaryKey (const T &object) -> PrimaryKey
auto orm::db::binding::getPrimaryKeyValue (const auto &values, const std::string &name, model::ColumnType type) -> query::QueryValue
auto orm::db::binding::getPrimaryKeyColumns (const model::ModelView &model) -> std::vector< const model::ColumnView * >
auto orm::db::binding::relationOwnerAlias (const model::ColumnView &column) -> std::string

Variables

template<typename T>
constexpr bool orm::db::binding::isOptional = IsOptional<std::remove_cv_t<T>>::value