Lightweight 0.20260921.0
Loading...
Searching...
No Matches
Lightweight::BelongsTo< TheReferencedField, ColumnNameOverrideString, Nullable >::Loader Struct Reference

Carries the deferred load, installed by the DataMapper. More...

#include <BelongsTo.hpp>

Public Attributes

std::function< RelationResult< ReferencedRecord >()> loadReference {}
 Loads the referenced record: RelationError::NotFound when there is none.
 

Detailed Description

template<auto TheReferencedField, auto ColumnNameOverrideString = std::nullopt, SqlNullable Nullable = SqlNullable::NotNull>
struct Lightweight::BelongsTo< TheReferencedField, ColumnNameOverrideString, Nullable >::Loader

Carries the deferred load, installed by the DataMapper.

Definition at line 420 of file BelongsTo.hpp.

Member Data Documentation

◆ loadReference

template<auto TheReferencedField, auto ColumnNameOverrideString = std::nullopt, SqlNullable Nullable = SqlNullable::NotNull>
std::function<RelationResult<ReferencedRecord>()> Lightweight::BelongsTo< TheReferencedField, ColumnNameOverrideString, Nullable >::Loader::loadReference {}

Loads the referenced record: RelationError::NotFound when there is none.

Definition at line 423 of file BelongsTo.hpp.


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