Qx v0.7
Qt Extensions Library
Loading...
Searching...
No Matches
QxSql::sql_override_convertible Concept Reference

Specifies that a type has override conversions for changing to/from SQL. More...

Concept definition

template<class K, typename T, Qx::CStringLiteral N>
concept QxSql::sql_override_convertible = requires(T& tValue) {
{ MemberOverrideConverter<K, N>::fromSql(tValue, QVariant()) } -> std::same_as<Qx::SqlError>;
{ MemberOverrideConverter<K, N>::toSql(tValue) } -> std::same_as<QVariant>;
}
Specifies that a type has override conversions for changing to/from SQL.
Definition qx-sqlconcepts.h:51

Detailed Description

Satisfied if QX_SQL_MEMBER_OVERRIDE() has been used to add functions to a SQL-tied struct with the signatures:

  • static Qx::SqlError fromSql(T& member, const QVariant& vValue)
  • static QVaroamt toSql(const T& member)