Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 7, 2024
1 parent 433c4ac commit b15aea7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/orm/query/querybuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ namespace Orm::Query
/*! Builder property types. */
enum struct PropertyType : quint8
{
/*! Columns property type (used to clone query without column names). */
COLUMNS,
};

Expand Down
2 changes: 2 additions & 0 deletions include/orm/tiny/concerns/hasrelationstore.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ namespace Orm::Tiny::Concerns
/*! Type of the template message to generate. */
enum struct CopyMoveTemplateType : quint8
{
/*! Tags copy constructor and assignment operator. */
COPY,
/*! Tags move constructor and assignment operator. */
MOVE,
};
/*! Template message for the Q_ASSERT_X() check in copy/move constructors. */
Expand Down
3 changes: 3 additions & 0 deletions include/orm/tiny/exceptions/relationmappingnotfounderror.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ namespace Orm::Tiny::Exceptions
/*! Exception message will be generated on the base of this enum struct. */
enum struct From : qint8
{
/*! Tags undefined relation (used in exception messages). */
UNDEFINED = -1,
/*! Tags Belongs to relation (used in exception messages). */
BELONGS_TO = 0,
/*! Tags Belongs to many relation (used in exception messages). */
BELONGS_TO_MANY = 1,
};

Expand Down
11 changes: 11 additions & 0 deletions include/orm/tiny/support/stores/baserelationstore.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,27 @@ namespace Support::Stores
/*! Type of data saved in the relation store. */
enum struct RelationStoreType : quint8
{
/*! The store for loading eager relations. */
EAGER,
/*! The store for loading eager relations (collection of pointers). */
EAGER_POINTERS,
/*! The store for the Model push() method. */
PUSH,
/*! The store for touching owner's timestamps. */
TOUCH_OWNERS,
/*! The store for the lazy loading. */
LAZY_RESULTS,
/*! The store to obtain the related table name for BelongsToMany relation. */
BELONGSTOMANY_RELATED_TABLE,
/*! Save arguments needed to build a query for last relation in hasNested(). */
QUERIES_RELATIONSHIPS_QUERY,
/*! Save arguments needed to build a query for last relation in hasNested(). */
QUERIES_RELATIONSHIPS_TINY,
/*! Save arguments needed to build a query for last relation in hasNested(). */
QUERIES_RELATIONSHIPS_TINY_NESTED,
/*! The store for serializing relationship (QVariantMap). */
RELATION_TO_MAP,
/*! The store for serializing relationship (QList<AttributeItem>). */
RELATION_TO_VECTOR,
};

Expand Down

0 comments on commit b15aea7

Please sign in to comment.