|
ORM C++
|
Namespaces | |
| namespace | config |
| namespace | db |
| namespace | migrations |
| namespace | model |
| namespace | query |
| namespace | reflection |
| namespace | utils |
Classes | |
| class | Database |
| class | DatabaseError |
| A backend-neutral database runtime error. More... | |
| class | ManyToMany |
| struct | ManyToManyDescriptor |
| Typed many-to-many mapping and its compile-time builder. More... | |
| struct | MariadbConfig |
| struct | MysqlConfig |
| struct | MysqlTls |
| class | OneToMany |
| struct | OneToManyDescriptor |
| Typed one-to-many mapping. The descriptor stores no runtime strings: every member and fallback name is encoded in its type. More... | |
| class | OrmContext |
| struct | PostgresConfig |
| struct | PostgresTls |
| class | ProjectionQuery |
| A select query that returns a user-defined DTO instead of the full source model. More... | |
| class | Query |
| A template class representing a select query in the ORM framework. More... | |
| class | ScopedTransaction |
| struct | SqliteConfig |
| struct | SqliteMemory |
| class | TimeOfDay |
| class | Update |
| class | Uuid |
| struct | UuidAdapter |
| struct | ValueConverter |
Concepts | |
| concept | UuidAdaptable |
| concept | ValueConvertible |
Typedefs | |
| template<typename T> | |
| using | relation_target_t = typename detail::RelationCollectionTraits<std::remove_cvref_t<T>>::Target |
| using | Date = std::chrono::year_month_day |
| using | LocalDateTime = std::chrono::local_time<std::chrono::microseconds> |
| using | UtcTimestamp = std::chrono::sys_time<std::chrono::microseconds> |
| template<typename... Models> | |
| using | Schema = model::Schema<Models...> |
Enumerations | |
| enum class | SqliteOpenMode { ReadWriteCreate , ReadWrite , ReadOnly } |
| enum class | PostgresSslMode { Disable , Allow , Prefer , Require , VerifyCa , VerifyFull } |
| enum class | MysqlSslMode { Disabled , Preferred , Required , VerifyCa , VerifyIdentity } |
| enum class | DatabaseErrorCode { NotConnected , AlreadyConnected , UnsupportedBackend , UnsupportedFeature , Connection , Statement , Constraint , Transaction , Conversion , AffectedRowsUnavailable , CommitUncertain } |
Functions | |
| template<auto Member> | |
| consteval auto | oneToMany () -> OneToManyDescriptor< Member > |
| template<auto Member> | |
| consteval auto | manyToMany () -> ManyToManyDescriptor< Member > |
| template<typename... Descriptors> | |
| consteval auto | relations (Descriptors... descriptors) |
| template<auto Member, db::BackendType Backend, model::UuidStorage Storage> | |
| consteval auto | uuidStorage () -> model::UuidStorageDefinition< Member, Backend, Storage > |
| template<typename... Definitions> | |
| consteval auto | uuidStorages (Definitions...) -> model::UuidStorages< Definitions... > |
| template<auto Member, reflection::FixedString SqlName> | |
| consteval auto | columnName () |
| template<typename... Definitions> | |
| consteval auto | columnNames (Definitions... definitions) |
| template<auto... Members> | |
| consteval auto | primaryKey () |
| template<auto Member, std::size_t Length> | |
| consteval auto | stringLength () |
| template<typename... Definitions> | |
| consteval auto | stringLengths (Definitions... definitions) |
| template<auto... Members> | |
| consteval auto | autoIncrement () |
| template<typename T> | |
| consteval auto | logicalType () -> model::ColumnType |
| template<typename SchemaType, typename T> | |
| consteval auto | modelDescriptor () noexcept -> model::StaticModel< T, SchemaType > |
| template<typename SchemaType, typename T> | |
| constexpr auto | modelView () noexcept -> model::ModelView |
Variables | |
| template<typename T> | |
| constexpr bool | is_relation_collection_v = detail::isRelationCollection<std::remove_cvref_t<T>> |
| template<typename T> | |
| constexpr bool | is_optional_relation_collection_v |
| template<typename T> | |
| constexpr bool | is_one_to_many_v |
|
export |
A calendar date. Database operations validate the calendar and backend range.
Definition at line 20 of file values.cppm.
|
export |
A civil date and time without an associated time zone.
Definition at line 23 of file values.cppm.
|
export |
Definition at line 234 of file relation_collections.cppm.
|
export |
Definition at line 504 of file schema.cppm.
|
export |
An instant on the UTC timeline, with microsecond resolution.
Definition at line 26 of file values.cppm.
|
exportstrong |
| Enumerator | |
|---|---|
| NotConnected | |
| AlreadyConnected | |
| UnsupportedBackend | |
| UnsupportedFeature | |
| Connection | |
| Statement | |
| Constraint | |
| Transaction | |
| Conversion | |
| AffectedRowsUnavailable | |
| CommitUncertain | |
Definition at line 98 of file types.cppm.
|
exportstrong |
| Enumerator | |
|---|---|
| Disabled | |
| Preferred | |
| Required | |
| VerifyCa | |
| VerifyIdentity | |
Definition at line 54 of file config.cppm.
|
exportstrong |
| Enumerator | |
|---|---|
| Disable | |
| Allow | |
| Prefer | |
| Require | |
| VerifyCa | |
| VerifyFull | |
Definition at line 37 of file config.cppm.
|
exportstrong |
| Enumerator | |
|---|---|
| ReadWriteCreate | |
| ReadWrite | |
| ReadOnly | |
Definition at line 23 of file config.cppm.
|
constevalexport |
Definition at line 596 of file mapping.cppm.
|
constevalexport |
Definition at line 563 of file mapping.cppm.
|
constevalexport |
Definition at line 569 of file mapping.cppm.
|
constevalexport |
Definition at line 602 of file mapping.cppm.
|
nodiscardconstevalexport |
Definition at line 219 of file relation_descriptors.cppm.
|
nodiscardconstevalexportnoexcept |
Definition at line 507 of file schema.cppm.
|
nodiscardconstexprexportnoexcept |
Definition at line 513 of file schema.cppm.
|
nodiscardconstevalexport |
Definition at line 209 of file relation_descriptors.cppm.
|
constevalexport |
Definition at line 576 of file mapping.cppm.
|
nodiscardconstevalexport |
Definition at line 228 of file relation_descriptors.cppm.
|
constevalexport |
Definition at line 583 of file mapping.cppm.
|
constevalexport |
Definition at line 589 of file mapping.cppm.
|
constevalexport |
Definition at line 710 of file columns.cppm.
|
constevalexport |
Definition at line 716 of file columns.cppm.
|
inlineconstexprexport |
Definition at line 237 of file relation_collections.cppm.
|
inlineconstexprexport |
Definition at line 230 of file relation_collections.cppm.
|
inlineconstexprexport |
Definition at line 227 of file relation_collections.cppm.