wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
annotations.hpp
Go to the documentation of this file.
1#pragma once
2
30
31namespace wowlib::db {
32 namespace detail {
34 struct IdSpec {};
35
40 struct NoninlineSpec {};
41
44 struct RelationSpec {};
45 }
46
49 inline constexpr detail::IdSpec Id{};
50
54 inline constexpr detail::NoninlineSpec Noninline{};
55
59 inline constexpr detail::RelationSpec Relation{};
60}
constexpr detail::NoninlineSpec Noninline
Mark a column stored outside the record image ($noninline$ in WoWDBDefs): ids delivered by the WDC id...
constexpr detail::RelationSpec Relation
Mark a relationship-key column ($relation$ in WoWDBDefs): its value references the id of the table's ...
constexpr detail::IdSpec Id
Mark the table's primary-key column ($id$ in WoWDBDefs).
Stored form of id: the member is the table's primary key ($id$).
Stored form of noninline: the member holds no bytes inside the record image — its values come from a ...
Stored form of relation: the member is a relationship key referencing the parent table's id ($relatio...