ORM C++
Loading...
Searching...
No Matches
orm Module Reference

Exported Modules

module  orm.reflection

Concepts

concept  orm::db::binding::IsOneOfTypes
concept  orm::db::binding::SociConvertableToInt
concept  orm::db::binding::SociConvertableToLongLong
concept  orm::db::binding::SociConvertableToUnsignedLongLong
concept  orm::db::binding::SociConvertableToDouble
concept  orm::db::binding::SociDefaultSupported
concept  orm::db::binding::SchemaModel
concept  orm::db::ConnectionConfiguration
concept  orm::UuidAdaptable
concept  orm::ValueConvertible

Classes

class  orm::ScopedTransaction
class  orm::Database
struct  orm::db::binding::OptionalValue< T >
struct  orm::db::binding::OptionalValue< T >
struct  orm::db::binding::BindingPayload< T, SchemaType, JoinedValues >
struct  soci::type_conversion< BindingPayload< T, SchemaType, JoinedValues > >
struct  soci::type_conversion< orm::db::binding::CollectionPayload< Owner, Target, SchemaType, JoinedValues > >
struct  soci::type_conversion< ProjectionPayload< T > >
class  orm::OrmContext< SchemaType >
class  orm::db::postgresql::PostgresqlDialect
class  orm::db::postgresql::PostgresqlBackend
class  orm::db::sqlite::SqliteDialect
class  orm::db::sqlite::SqliteBackend
class  orm::db::mysql::MysqlDialect
class  orm::db::mysql::MysqlBackend
class  orm::db::mariadb::MariadbDialect
class  orm::db::mariadb::MariadbBackend
struct  orm::db::SchemaCapabilities
struct  orm::db::QueryCapabilities
struct  orm::db::MutationCapabilities
struct  orm::db::RelationCapabilities
struct  orm::db::BackendValueLimits
struct  orm::db::MigrationCapabilities
struct  orm::db::BackendCapabilities
struct  orm::db::BackendRuntimeLimits
class  orm::db::BackendProvider
struct  orm::db::BoundValue
struct  orm::db::StatementParameter
struct  orm::db::Statement
struct  orm::db::StatementView
class  orm::db::BackendRuntime
struct  orm::db::PaginationSpec
struct  orm::db::InsertIfAbsentSpec
class  orm::db::SqlDialect
class  orm::db::TypeTranslator
struct  orm::db::binding::ObjectFieldFromValues< ModelField >
struct  orm::db::InsertManySpec
struct  orm::db::detail::InsertColumnBinding
class  orm::db::CommandGenerator
class  orm::db::DefaultCommandGenerator
class  orm::db::CommandGeneratorFactory
struct  orm::model::StaticModel< T, SchemaType >
 Materializes one aggregate model's complete scalar metadata in static storage. More...
struct  orm::model::Schema< Models >
 A closed compile-time set of ORM models. More...
class  orm::query::QueryValue
 A value that can be bound as a query parameter. More...
struct  orm::query::QueryParameter
 A named parameter for raw query fragments. More...
class  orm::Query< T >
 A template class representing a select query in the ORM framework. More...
class  orm::detail::RelationCollection< T >
class  orm::OneToMany< T >
class  orm::ManyToMany< T >
struct  orm::detail::RelationCollectionTraits< T >
struct  orm::detail::RelationCollectionTraits< OneToMany< T > >
struct  orm::detail::RelationCollectionTraits< ManyToMany< T > >
struct  orm::detail::OptionalRelationCollectionTraits< T >
struct  orm::detail::OptionalRelationCollectionTraits< std::optional< T > >
struct  orm::SqliteMemory
struct  orm::SqliteConfig
struct  orm::PostgresTls
struct  orm::MysqlTls
struct  orm::PostgresConfig
struct  orm::MysqlConfig
struct  orm::MariadbConfig
struct  orm::db::ConnectionTraits< Config >
struct  orm::db::ConnectionTraits< SqliteConfig >
struct  orm::db::ConnectionTraits< PostgresConfig >
struct  orm::db::ConnectionTraits< MysqlConfig >
struct  orm::db::ConnectionTraits< MariadbConfig >
class  orm::db::ConnectionConfigView
struct  orm::migrations::PhysicalColumn
struct  orm::migrations::PhysicalForeignKey
struct  orm::migrations::PhysicalIndex
struct  orm::migrations::PhysicalTable
struct  orm::migrations::PhysicalSchema
struct  orm::migrations::SchemaSnapshot
struct  orm::migrations::RebuildTable
struct  orm::migrations::MigrationExecutionContext
struct  orm::migrations::TableRename
struct  orm::migrations::ColumnRename
struct  orm::migrations::ColumnTransformation
struct  orm::migrations::GenerationDecisions
struct  orm::migrations::SchemaChange
struct  orm::migrations::GenerationDiagnostic
struct  orm::migrations::SchemaDiff
class  orm::migrations::GenerationError
struct  orm::model::ColumnName< Member, SqlName >
 Compile-time override of one aggregate member's SQL column name. More...
struct  orm::model::ColumnNames< Definitions >
struct  orm::model::StringLength< Member, Length >
struct  orm::model::StringLengths< Definitions >
struct  orm::model::PrimaryKey< Members >
struct  orm::model::AutoIncrement< Members >
struct  orm::model::LogicalTypeTraits< T >
struct  orm::model::LogicalTypeTraits< bool >
struct  orm::model::LogicalTypeTraits< char >
struct  orm::model::LogicalTypeTraits< signed char >
struct  orm::model::LogicalTypeTraits< unsigned char >
struct  orm::model::LogicalTypeTraits< short >
struct  orm::model::LogicalTypeTraits< unsigned short >
struct  orm::model::LogicalTypeTraits< int >
struct  orm::model::LogicalTypeTraits< unsigned int >
struct  orm::model::LogicalTypeTraits< long >
struct  orm::model::LogicalTypeTraits< unsigned long >
struct  orm::model::LogicalTypeTraits< long long >
struct  orm::model::LogicalTypeTraits< unsigned long long >
struct  orm::model::LogicalTypeTraits< float >
struct  orm::model::LogicalTypeTraits< double >
struct  orm::model::LogicalTypeTraits< std::string >
struct  orm::model::LogicalTypeTraits< Date >
struct  orm::model::LogicalTypeTraits< TimeOfDay >
struct  orm::model::LogicalTypeTraits< LocalDateTime >
struct  orm::model::LogicalTypeTraits< UtcTimestamp >
struct  orm::model::LogicalTypeTraits< Uuid >
struct  orm::model::LogicalTypeTraits< T >
class  orm::query::TypedPredicate< Owner, WriteSafe, ContainsCollection >
class  orm::query::TypedAggregatePredicate< Owner >
class  orm::query::Expression< Kind, Meta, Children >
class  orm::query::Parameter< T, Index >
class  orm::DatabaseError
 A backend-neutral database runtime error. More...
struct  orm::db::binding::BindingInfo
 Binding info. More...
class  orm::TimeOfDay
class  orm::Uuid
struct  orm::UuidAdapter< T >
struct  orm::ValueConverter< T >
class  orm::migrations::MigrationError
struct  orm::migrations::SqlMigration
struct  orm::migrations::Migration
class  orm::migrations::Catalog
struct  orm::migrations::MigrationSummary
struct  orm::migrations::AppliedMigration
struct  orm::migrations::Diagnostic
struct  orm::migrations::IncompleteMigration
struct  orm::migrations::Status
struct  orm::migrations::PlannedMigration
struct  orm::migrations::Plan
class  orm::migrations::Runner
struct  orm::migrations::GeneratedMigration
class  orm::migrations::MigrationProject
class  orm::query::TypedOrderBy< Owner >
class  orm::query::TypedProjection< Owner >
struct  orm::model::UuidStorageDefinition< Member, Backend, Storage >
struct  orm::model::UuidStorages< Definitions >
struct  orm::model::detail::IsUuidStorages< typename >
struct  orm::model::detail::IsUuidStorages< UuidStorages< Definitions... > >
struct  orm::model::detail::StaticSchemaTraits< typename >
struct  orm::model::detail::StaticSchemaTraits< Schema< Models... > >
struct  orm::model::detail::IsFixedString< typename >
struct  orm::model::detail::IsFixedString< reflection::FixedString< Size > >
struct  orm::model::detail::IsColumnNames< typename >
struct  orm::model::detail::IsColumnNames< ColumnNames< Definitions... > >
struct  orm::model::detail::IsPrimaryKey< typename >
struct  orm::model::detail::IsStringLengths< typename >
struct  orm::model::detail::IsStringLengths< StringLengths< Definitions... > >
struct  orm::model::detail::IsPrimaryKey< PrimaryKey< Members... > >
struct  orm::model::detail::IsAutoIncrement< typename >
struct  orm::model::detail::IsAutoIncrement< AutoIncrement< Members... > >
struct  orm::model::detail::IsRelations< typename >
struct  orm::model::detail::IsRelations< std::tuple< Descriptors... > >
struct  orm::model::TypeId
struct  orm::model::ColumnView
struct  orm::model::JunctionView
struct  orm::model::RelationView
struct  orm::model::ModelDataView
 Immutable data stored once for a model inside a closed schema. More...
struct  orm::model::ModelView
 Trivially-copyable handle to one model in immutable Schema storage. More...
struct  orm::model::SchemaView
 Immutable view over a statically materialized schema. More...
struct  orm::OneToManyDescriptor< Member, MappedByMember, MappedByName >
 Typed one-to-many mapping. The descriptor stores no runtime strings: every member and fallback name is encoded in its type. More...
struct  orm::detail::IsRelationDescriptor< OneToManyDescriptor< Member, MappedByMember, MappedByName > >
struct  orm::detail::IsOneToManyDescriptor< OneToManyDescriptor< Member, MappedByMember, MappedByName > >
struct  orm::ManyToManyDescriptor< Member, MappedByMember, MappedByName, ThroughTable, OwnerColumnNames, TargetColumnNames >
 Typed many-to-many mapping and its compile-time builder. More...
struct  orm::detail::IsRelationDescriptor< ManyToManyDescriptor< Member, MappedByMember, MappedByName, ThroughTable, OwnerColumnNames, TargetColumnNames > >
struct  orm::detail::IsManyToManyDescriptor< ManyToManyDescriptor< Member, MappedByMember, MappedByName, ThroughTable, OwnerColumnNames, TargetColumnNames > >
class  orm::ProjectionQuery< Source, Result >
 A select query that returns a user-defined DTO instead of the full source model. More...
class  orm::Update< T >
class  orm::query::TypedColumn< Members >
class  orm::query::TypedAggregate< Owner, ResultValue, Nullable >
class  orm::query::StaticPlan< Operation, Owner, ResultType, StateTuple, Distinct, Join >

Enumerations

enum class  orm::db::AffectedRowsSupport { orm::db::Unavailable , orm::db::Reliable }
enum class  orm::db::MigrationAtomicity { orm::db::WholeMigration , orm::db::NonTransactional }
enum class  orm::SqliteOpenMode { orm::ReadWriteCreate , orm::ReadWrite , orm::ReadOnly }
enum class  orm::PostgresSslMode {
  orm::Disable , orm::Allow , orm::Prefer , orm::Require ,
  orm::VerifyCa , orm::VerifyFull
}
enum class  orm::MysqlSslMode {
  orm::Disabled , orm::Preferred , orm::Required , orm::VerifyCa ,
  orm::VerifyIdentity
}
enum class  orm::migrations::MigrationExecutionMode { orm::migrations::Normal , orm::migrations::SqliteRebuild }
enum class  orm::migrations::SchemaChangeKind {
  orm::migrations::CreateTable , orm::migrations::DropTable , orm::migrations::RenameTable , orm::migrations::AddColumn ,
  orm::migrations::DropColumn , orm::migrations::RenameColumn , orm::migrations::AlterColumn , orm::migrations::AlterPrimaryKey ,
  orm::migrations::AddForeignKey , orm::migrations::DropForeignKey , orm::migrations::AddIndex , orm::migrations::DropIndex
}
enum class  orm::query::ExprKind {
  orm::query::Column , orm::query::Comparison , orm::query::Null , orm::query::List ,
  orm::query::Between , orm::query::Logical , orm::query::Not , orm::query::Collection ,
  orm::query::Aggregate , orm::query::Order , orm::query::Projection , orm::query::DynamicPredicate ,
  orm::query::DynamicAggregatePredicate , orm::query::DynamicAggregate , orm::query::DynamicOrder , orm::query::DynamicProjection
}
enum class  orm::model::ColumnType {
  orm::model::Bool , orm::model::Char , orm::model::UnsignedChar , orm::model::Short ,
  orm::model::UnsignedShort , orm::model::Int , orm::model::UnsignedInt , orm::model::LongLong ,
  orm::model::UnsignedLongLong , orm::model::Float , orm::model::Double , orm::model::String ,
  orm::model::Uuid , orm::model::Date , orm::model::TimeOfDay , orm::model::LocalDateTime ,
  orm::model::UtcTimestamp
}
enum class  orm::model::RelationKind { orm::model::ToOne , orm::model::OneToMany , orm::model::ManyToMany }
enum class  orm::db::BackendType {
  orm::db::Sqlite = 0 , orm::db::Postgres = 1 , orm::db::Mysql = 2 , orm::db::Oracle = 3 ,
  orm::db::Firebird = 4 , orm::db::Db2 = 5 , orm::db::Odbc = 6 , orm::db::Empty = 7 ,
  orm::db::Mariadb = 8
}
enum class  orm::db::CompiledSqlFlavor { orm::db::None , orm::db::SQLite , orm::db::PostgreSQL , orm::db::MySQLFamily }
enum class  orm::DatabaseErrorCode {
  orm::NotConnected , orm::AlreadyConnected , orm::UnsupportedBackend , orm::UnsupportedFeature ,
  orm::Connection , orm::Statement , orm::Constraint , orm::Transaction ,
  orm::Conversion , orm::AffectedRowsUnavailable , orm::CommitUncertain
}
enum class  orm::migrations::ErrorCode {
  orm::migrations::InvalidCatalog , orm::migrations::InvalidSql , orm::migrations::NotConnected , orm::migrations::ActiveTransaction ,
  orm::migrations::UnsupportedBackend , orm::migrations::InvalidHistory , orm::migrations::ChecksumMismatch , orm::migrations::InvalidTarget ,
  orm::migrations::MissingDown , orm::migrations::BaselineBoundary , orm::migrations::LockUnavailable , orm::migrations::HistoryChanged ,
  orm::migrations::Execution , orm::migrations::CommitUncertain , orm::migrations::IncompleteMigration , orm::migrations::InvalidResolution ,
  orm::migrations::InvalidSchema , orm::migrations::SessionRestoration
}
enum class  orm::migrations::Direction { orm::migrations::Up , orm::migrations::Down }
enum class  orm::migrations::Resolution { orm::migrations::Completed , orm::migrations::Reverted }
enum class  orm::model::FieldKind { orm::model::Scalar , orm::model::ToOne }
enum class  orm::model::UuidStorage { orm::model::Native , orm::model::Binary16 , orm::model::Text36 }

Typedefs

template<typename T>
using orm::db::binding::optional_value_t = typename OptionalValue<std::remove_cv_t<T>>::Type
template<typename T, typename SchemaType, bool JoinedValues = false>
using soci::BindingPayload = orm::db::binding::BindingPayload<T, SchemaType, JoinedValues>
using orm::db::SelectSpec = query::detail::SelectSpec
using orm::db::UpdateSpec = query::detail::UpdateSpec
using orm::db::Predicate = query::detail::Predicate
using orm::db::ast::Column = orm::query::detail::Column
using orm::db::ast::PredicateNode = orm::query::detail::PredicateNode
using orm::db::ast::PredicateNodePtr = orm::query::detail::PredicateNodePtr
using orm::db::ast::ComparisonOperator = orm::query::detail::ComparisonOperator
using orm::db::ast::NullOperator = orm::query::detail::NullOperator
using orm::db::ast::ListOperator = orm::query::detail::ListOperator
using orm::db::ast::BetweenOperator = orm::query::detail::BetweenOperator
using orm::db::ast::LogicalOperator = orm::query::detail::LogicalOperator
using orm::db::ast::CollectionOperator = orm::query::detail::CollectionOperator
using orm::db::ast::ComparisonExpression = orm::query::detail::ComparisonExpression
using orm::db::ast::NullExpression = orm::query::detail::NullExpression
using orm::db::ast::ListExpression = orm::query::detail::ListExpression
using orm::db::ast::BetweenExpression = orm::query::detail::BetweenExpression
using orm::db::ast::LogicalExpression = orm::query::detail::LogicalExpression
using orm::db::ast::NotExpression = orm::query::detail::NotExpression
using orm::db::ast::RawExpression = orm::query::detail::RawExpression
using orm::db::ast::CollectionExpression = orm::query::detail::CollectionExpression
using orm::db::ast::AggregateFunction = orm::query::detail::AggregateFunction
using orm::db::ast::AggregateExpression = orm::query::detail::AggregateExpression
using orm::db::ast::AggregatePredicate = orm::query::detail::AggregatePredicate
using orm::db::ast::AggregatePredicateNode = orm::query::detail::AggregatePredicateNode
using orm::db::ast::AggregatePredicateNodePtr = orm::query::detail::AggregatePredicateNodePtr
using orm::db::ast::AggregateComparisonExpression = orm::query::detail::AggregateComparisonExpression
using orm::db::ast::AggregateLogicalExpression = orm::query::detail::AggregateLogicalExpression
using orm::db::ast::AggregateNotExpression = orm::query::detail::AggregateNotExpression
using orm::db::ast::OrderDirection = orm::query::detail::OrderDirection
using orm::db::ast::OrderBy = orm::query::detail::OrderBy
using orm::db::ast::ProjectionSource = orm::query::detail::ProjectionSource
using orm::db::ast::Projection = orm::query::detail::Projection
using orm::db::ast::UpdateValue = orm::query::detail::UpdateValue
using orm::db::ast::UpdateAssignment = orm::query::detail::UpdateAssignment
using orm::db::PrimaryKey = binding::PrimaryKey
using orm::db::SelectStatement = Statement
template<typename... Models>
using orm::Schema = model::Schema<Models...>
template<typename T>
using orm::relation_target_t = typename detail::RelationCollectionTraits<std::remove_cvref_t<T>>::Target
using orm::migrations::GenerationLiteral
using orm::Date = std::chrono::year_month_day
using orm::LocalDateTime = std::chrono::local_time<std::chrono::microseconds>
using orm::UtcTimestamp = std::chrono::sys_time<std::chrono::microseconds>
using orm::migrations::Version = std::int64_t

Functions

template<typename Wrapper, typename Value>
auto orm::db::binding::makeNullableValue (Value value) -> Wrapper
auto orm::db::binding::isWithinValueLimits (const BoundValue &bound, const BackendValueLimits &limits, const BackendRuntimeLimits &runtime={}) noexcept -> bool
template<typename ModelField>
auto orm::db::binding::getScalarFieldValue (const auto &values, const std::string &fieldName) -> ModelField
auto orm::db::insertManyParameterName (std::size_t rowIndex, std::string_view logicalName) -> std::string
auto orm::db::relations::createTableStatements (const SqlDialect &dialect, model::ModelView owner, BackendType backend=BackendType::Empty) -> std::vector< std::string >
auto orm::db::relations::dropTableStatements (const SqlDialect &dialect, model::ModelView owner) -> std::vector< std::string >
auto orm::db::relations::linkStatement (const SqlDialect &dialect, model::ModelView owner, model::RelationView relation, const binding::PrimaryKey &ownerKey, const binding::PrimaryKey &targetKey, BackendType backend=BackendType::Empty) -> Statement
auto orm::db::relations::linkInsertSpec (model::ModelView owner, model::RelationView relation, const binding::PrimaryKey &ownerKey, const binding::PrimaryKey &targetKey) -> InsertIfAbsentSpec
auto orm::db::relations::unlinkStatement (const SqlDialect &dialect, model::ModelView owner, model::RelationView relation, const binding::PrimaryKey &ownerKey, const binding::PrimaryKey &targetKey, BackendType backend=BackendType::Empty) -> Statement
auto orm::db::relations::collectionSelectStatement (const SqlDialect &dialect, model::ModelView owner, model::RelationView relation, std::string targetSelectSql, const std::vector< binding::PrimaryKey > &ownerKeys, bool joinedValues, BackendType backend=BackendType::Empty) -> Statement
template<typename SchemaType, typename T>
consteval auto orm::model::modelDescriptor () noexcept -> StaticModel< T, SchemaType >
template<typename SchemaType, typename T>
constexpr auto orm::model::modelView () noexcept -> ModelView
template<typename T>
consteval auto orm::model::tableName () -> std::string_view
template<typename SchemaType>
constexpr auto orm::model::schemaView () noexcept -> const SchemaView &
template<typename SchemaType, typename T>
consteval auto orm::model::requireSchemaModel () -> void
template<typename SchemaType, typename T>
consteval auto orm::modelDescriptor () noexcept -> model::StaticModel< T, SchemaType >
template<typename SchemaType, typename T>
constexpr auto orm::modelView () noexcept -> model::ModelView
template<typename T>
auto orm::query::param (std::string name, T value) -> QueryParameter
 Creates a named parameter for a raw SQL fragment.
template<typename T>
auto orm::query::param (std::string name, T value, model::UuidStorage uuidStorage) -> QueryParameter
auto orm::query::param (std::string name, std::nullopt_t, model::ColumnType logicalType, model::UuidStorage uuidStorage) -> QueryParameter
template<UuidDomainValue T>
auto orm::query::param (std::string name, const std::optional< T > &value, model::UuidStorage uuidStorage) -> QueryParameter
template<auto Member, reflection::FixedString SqlName>
consteval auto orm::model::columnName () -> ColumnName< Member, SqlName >
 Creates a typed SQL column-name override.
template<typename... Definitions>
consteval auto orm::model::columnNames (Definitions...) -> ColumnNames< Definitions... >
 Groups typed SQL column-name overrides.
template<auto Member, std::size_t Length>
consteval auto orm::model::stringLength () -> StringLength< Member, Length >
template<typename... Definitions>
consteval auto orm::model::stringLengths (Definitions...) -> StringLengths< Definitions... >
template<auto... Members>
consteval auto orm::model::primaryKey () -> PrimaryKey< Members... >
 Defines an ordered, typed primary key. An empty definition makes the model explicitly keyless.
template<auto... Members>
consteval auto orm::model::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 orm::model::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<auto Member, reflection::FixedString SqlName>
consteval auto orm::columnName ()
template<typename... Definitions>
consteval auto orm::columnNames (Definitions... definitions)
template<auto... Members>
consteval auto orm::primaryKey ()
template<auto Member, std::size_t Length>
consteval auto orm::stringLength ()
template<typename... Definitions>
consteval auto orm::stringLengths (Definitions... definitions)
template<auto... Members>
consteval auto orm::autoIncrement ()
template<typename T>
consteval auto orm::logicalType () -> model::ColumnType
template<auto Start, auto End, auto Inc, class F, class... Args>
constexpr auto orm::utils::constexpr_for (F &&f, Args... args) -> void
template<class Tuple, class F, class... Args>
constexpr auto orm::utils::constexpr_for_tuple (Tuple &&t, F &&f, Args... args) -> void
template<class Tuple, class F, class... Args>
constexpr auto orm::utils::constexpr_for_tuple (F &&f, Args... args) -> void
constexpr auto orm::utils::replaceAll (std::string &text, const std::string &toReplace, const std::string &replaceWith) -> void
auto orm::utils::removeLastComma (std::string &text) -> void
template<typename T, std::size_t Index>
constexpr auto orm::query::param () -> Parameter< T, Index >
auto orm::model::toString (ColumnType type) -> std::string
auto orm::migrations::emptySnapshot (std::span< const db::BackendType > backends=generationBackends) -> SchemaSnapshot
auto orm::migrations::capture (model::SchemaView models, std::span< const db::BackendType > backends=generationBackends) -> SchemaSnapshot
auto orm::migrations::compare (const SchemaSnapshot &before, const SchemaSnapshot &after, const GenerationDecisions &decisions={}) -> SchemaDiff
auto orm::migrations::generate (Version version, std::string name, const SchemaDiff &diff, const GenerationDecisions &decisions={}) -> GeneratedMigration
auto orm::migrations::runCommandLine (std::span< const std::string_view > args, model::SchemaView models, const std::filesystem::path &directory, std::ostream &output, std::ostream &errors) -> int
auto orm::migrations::runCommandLine (int argc, const char *const *argv, model::SchemaView models, const std::filesystem::path &directory="migrations") -> int
template<auto... Members>
constexpr auto orm::query::asc (TypedColumn< Members... > column)
template<auto... Members>
constexpr auto orm::query::desc (TypedColumn< Members... > column)
template<typename M>
auto orm::query::rawOrder (std::string sql) -> TypedOrderBy< M >
template<typename S>
constexpr auto orm::query::as (std::string alias, S source)
template<reflection::FixedString Alias, typename S>
constexpr auto orm::query::as (S source)
template<auto Member, db::BackendType Backend, model::UuidStorage Storage>
consteval auto orm::uuidStorage () -> model::UuidStorageDefinition< Member, Backend, Storage >
template<typename... Definitions>
consteval auto orm::uuidStorages (Definitions...) -> model::UuidStorages< Definitions... >
template<typename T>
consteval auto orm::model::typeId () noexcept -> TypeId
template<auto Member>
consteval auto orm::oneToMany () -> OneToManyDescriptor< Member >
template<auto Member>
consteval auto orm::manyToMany () -> ManyToManyDescriptor< Member >
template<typename... Descriptors>
consteval auto orm::relations (Descriptors... descriptors)
template<auto... Members>
constexpr auto orm::query::col () -> TypedColumn< Members... >
template<typename L, typename R>
constexpr auto orm::query::operator&& (const L &left, const R &right)
template<typename L, typename R>
constexpr auto orm::query::operator|| (const L &left, const R &right)
template<typename E>
constexpr auto orm::query::operator! (const E &value)
template<auto Member, typename E>
constexpr auto orm::query::any (const E &predicate)
template<auto Member, typename E>
constexpr auto orm::query::none (const E &predicate)
template<auto Member>
constexpr auto orm::query::exists ()
template<typename M, typename... P>
auto orm::query::raw (std::string sql, P... params) -> TypedPredicate< M >
template<auto... Members>
constexpr auto orm::query::count (TypedColumn< Members... > column)
template<typename Model>
constexpr auto orm::query::countAll ()
template<auto... Members>
constexpr auto orm::query::sum (TypedColumn< Members... > column)
template<auto... Members>
constexpr auto orm::query::avg (TypedColumn< Members... > column)
template<auto... Members>
constexpr auto orm::query::min (TypedColumn< Members... > column)
template<auto... Members>
constexpr auto orm::query::max (TypedColumn< Members... > column)
template<typename Model>
constexpr auto orm::query::select ()
template<typename Source, typename Result, typename... P>
constexpr auto orm::query::selectAs (P... projections)
template<typename Model>
constexpr auto orm::query::update ()
template<typename Model>
constexpr auto orm::query::remove ()

Variables

constexpr bool orm::config::sqliteBackendEnabled = true
constexpr bool orm::config::postgresqlBackendEnabled = true
constexpr bool orm::config::mysqlBackendEnabled = true
constexpr bool orm::config::mariadbBackendEnabled = true
template<typename T>
constexpr bool orm::is_relation_collection_v = detail::isRelationCollection<std::remove_cvref_t<T>>
template<typename T>
constexpr bool orm::is_optional_relation_collection_v
template<typename T>
constexpr bool orm::is_one_to_many_v
constexpr std::array orm::migrations::generationBackends
template<typename T>
constexpr bool orm::model::isNullable = detail::StaticOptionalTraits<std::remove_cvref_t<T>>::isOptional
constexpr auto orm::model::noTargetModel = std::numeric_limits<std::size_t>::max()

Files

file  modules/orm.cppm
file  modules/orm/query/aggregate.cppm
file  modules/BackendRelations.cppm
file  modules/BuildConfig.cppm
file  modules/orm/model/columns.cppm
file  modules/orm/query/columns.cppm
file  modules/orm/sql/commands.cppm
file  modules/orm/sql/compiled.cppm
file  modules/orm/database/config.cppm
file  modules/orm/database/connection.cppm
file  modules/orm/database/context.cppm
file  modules/orm/sql/contracts.cppm
file  modules/orm/database.cppm
file  modules/orm/dynamic_query.cppm
file  modules/orm/sql/emitter.cppm
file  modules/orm/query/expression.cppm
file  modules/orm/expressions.cppm
file  modules/orm/foundation.cppm
file  modules/orm/model/mapping.cppm
file  modules/orm/migrations.cppm
file  modules/orm/model.cppm
file  modules/orm/database/numeric.cppm
file  modules/orm/database/object_binding.cppm
file  modules/orm/query/parameters.cppm
file  modules/orm/database/payload.cppm
file  modules/orm/database/perf_test_seam.cppm
file  modules/orm/sql/program.cppm
file  modules/orm/dynamic_query/projection.cppm
file  modules/orm/query/projection.cppm
file  modules/orm/foundation/relation_collections.cppm
file  modules/orm/foundation/relation_descriptors.cppm
file  modules/orm/model/relations.cppm
file  modules/orm/database/result_binding.cppm
file  modules/orm/database/result_storage.cppm
file  modules/orm/query/runtime_predicate.cppm
file  modules/orm/migrations/schema.cppm
file  modules/orm/model/schema.cppm
file  modules/orm/dynamic_query/select.cppm
file  modules/orm/database/soci.cppm
file  modules/orm/sql.cppm
file  modules/orm/static_plan.cppm
file  modules/orm/foundation/types.cppm
file  modules/orm/dynamic_query/update.cppm
file  modules/orm/foundation/utilities.cppm
file  modules/orm/query/value.cppm
file  modules/orm/foundation/value_codec.cppm
file  modules/orm/foundation/values.cppm
file  modules/orm/model/views.cppm