|
ORM C++
|
Enumerations | |
| enum class | ColumnType { Bool , Char , UnsignedChar , Short , UnsignedShort , Int , UnsignedInt , LongLong , UnsignedLongLong , Float , Double , String , Uuid , Date , TimeOfDay , LocalDateTime , UtcTimestamp } |
| enum class | RelationKind { ToOne , OneToMany , ManyToMany } |
| enum class | FieldKind { Scalar , ToOne } |
| enum class | UuidStorage { Native , Binary16 , Text36 } |
Functions | |
| auto | toString (ColumnType type) -> std::string |
| template<auto Member, reflection::FixedString SqlName> | |
| consteval auto | columnName () -> ColumnName< Member, SqlName > |
| Creates a typed SQL column-name override. | |
| template<typename... Definitions> | |
| consteval auto | columnNames (Definitions...) -> ColumnNames< Definitions... > |
| Groups typed SQL column-name overrides. | |
| template<auto Member, std::size_t Length> | |
| consteval auto | stringLength () -> StringLength< Member, Length > |
| template<typename... Definitions> | |
| consteval auto | stringLengths (Definitions...) -> StringLengths< Definitions... > |
| template<auto... Members> | |
| consteval auto | primaryKey () -> PrimaryKey< Members... > |
| Defines an ordered, typed primary key. An empty definition makes the model explicitly keyless. | |
| template<auto... Members> | |
| consteval auto | autoIncrement () -> AutoIncrement< Members... > |
| Defines typed auto-increment members. Static-model validation further restricts this to one non-null int primary-key member. | |
| template<typename T> | |
| consteval auto | logicalType () -> ColumnType |
| Resolves a C++ field type to its logical database type at compile time. Users may extend the closed set through LogicalTypeTraits<T>. | |
| template<typename SchemaType, typename T> | |
| consteval auto | modelDescriptor () noexcept -> StaticModel< T, SchemaType > |
| template<typename SchemaType, typename T> | |
| constexpr auto | modelView () noexcept -> ModelView |
| template<typename T> | |
| consteval auto | tableName () -> std::string_view |
| template<typename SchemaType> | |
| constexpr auto | schemaView () noexcept -> const SchemaView & |
| template<typename SchemaType, typename T> | |
| consteval auto | requireSchemaModel () -> void |
| template<typename T> | |
| consteval auto | typeId () noexcept -> TypeId |
Variables | |
| template<typename T> | |
| constexpr bool | isNullable = detail::StaticOptionalTraits<std::remove_cvref_t<T>>::isOptional |
| constexpr auto | noTargetModel = std::numeric_limits<std::size_t>::max() |
|
exportstrong |
| Enumerator | |
|---|---|
| Bool | |
| Char | |
| UnsignedChar | |
| Short | |
| UnsignedShort | |
| Int | |
| UnsignedInt | |
| LongLong | |
| UnsignedLongLong | |
| Float | |
| Double | |
| String | |
| Uuid | |
| Date | |
| TimeOfDay | |
| LocalDateTime | |
| UtcTimestamp | |
Definition at line 15 of file types.cppm.
|
exportstrong |
| Enumerator | |
|---|---|
| Scalar | |
| ToOne | |
Definition at line 40 of file views.cppm.
|
exportstrong |
| Enumerator | |
|---|---|
| ToOne | |
| OneToMany | |
| ManyToMany | |
Definition at line 46 of file types.cppm.
|
exportstrong |
Physical representation of a logical UUID for a selected backend.
| Enumerator | |
|---|---|
| Native | |
| Binary16 | |
| Text36 | |
Definition at line 47 of file views.cppm.
|
constevalexport |
Defines typed auto-increment members. Static-model validation further restricts this to one non-null int primary-key member.
Definition at line 377 of file mapping.cppm.
|
constevalexport |
Creates a typed SQL column-name override.
Definition at line 159 of file mapping.cppm.
|
constevalexport |
Groups typed SQL column-name overrides.
Definition at line 222 of file mapping.cppm.
|
constevalexport |
Resolves a C++ field type to its logical database type at compile time. Users may extend the closed set through LogicalTypeTraits<T>.
Definition at line 528 of file mapping.cppm.
|
nodiscardconstevalexportnoexcept |
Definition at line 114 of file schema.cppm.
|
nodiscardconstexprexportnoexcept |
Definition at line 120 of file schema.cppm.
|
constevalexport |
Defines an ordered, typed primary key. An empty definition makes the model explicitly keyless.
Definition at line 330 of file mapping.cppm.
|
constevalexport |
Definition at line 490 of file schema.cppm.
|
nodiscardconstexprexportnoexcept |
Definition at line 484 of file schema.cppm.
|
constevalexport |
Definition at line 239 of file mapping.cppm.
|
constevalexport |
Definition at line 277 of file mapping.cppm.
|
nodiscardconstevalexport |
Definition at line 126 of file schema.cppm.
|
export |
|
constevalexportnoexcept |
Definition at line 35 of file views.cppm.
|
inlineconstexprexport |
Definition at line 552 of file mapping.cppm.
|
inlineconstexprexport |
Definition at line 54 of file views.cppm.