ORM C++
Loading...
Searching...
No Matches
orm::model::StaticModel< T, SchemaType > Struct Template Referenceexport
module orm

Materializes one aggregate model's complete scalar metadata in static storage. More...

Collaboration diagram for orm::model::StaticModel< T, SchemaType >:

Static Public Attributes

static constexpr auto columns = detail::staticColumns<T, SchemaType>
static constexpr auto primaryKeyIndices = detail::staticPrimaryKeyIndices<T, SchemaType>
static constexpr auto relations = detail::makeRelations<T, SchemaType>()
static constexpr ModelDataView data

Detailed Description

template<typename T, typename SchemaType>
struct orm::model::StaticModel< T, SchemaType >

Materializes one aggregate model's complete scalar metadata in static storage.

Definition at line 49 of file schema.cppm.

Member Data Documentation

◆ columns

template<typename T, typename SchemaType>
auto orm::model::StaticModel< T, SchemaType >::columns = detail::staticColumns<T, SchemaType>
inlinestaticconstexpr

Definition at line 75 of file schema.cppm.

◆ data

template<typename T, typename SchemaType>
ModelDataView orm::model::StaticModel< T, SchemaType >::data
inlinestaticconstexpr
Initial value:
{
.type = typeId<T>(),
.schemaIndex = detail::StaticSchemaTraits<SchemaType>::template indexOf<T>(),
.typeName = detail::modelTypeName<T>(),
.tableName = detail::mappedTableName<T>(),
.columns = columns,
.primaryKeyIndices = primaryKeyIndices,
.relations = relations,
}
consteval auto typeId() noexcept -> TypeId
Definition views.cppm:35
static constexpr auto primaryKeyIndices
Definition schema.cppm:85
static constexpr auto relations
Definition schema.cppm:100
static constexpr auto columns
Definition schema.cppm:75

Definition at line 102 of file schema.cppm.

◆ primaryKeyIndices

template<typename T, typename SchemaType>
auto orm::model::StaticModel< T, SchemaType >::primaryKeyIndices = detail::staticPrimaryKeyIndices<T, SchemaType>
inlinestaticconstexpr

Definition at line 85 of file schema.cppm.

◆ relations

template<typename T, typename SchemaType>
auto orm::model::StaticModel< T, SchemaType >::relations = detail::makeRelations<T, SchemaType>()
inlinestaticconstexpr

Definition at line 100 of file schema.cppm.


The documentation for this struct was generated from the following file: