![]() |
LeechCraft
0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
|
Namespaces | |
| SQLite | |
Typedefs | |
| template<typename Seq , int Idx> | |
| using | ValueAtC_t = std::decay_t< decltype(Get< Idx >(std::declval< Seq >()))> |
| template<typename T > | |
| using | UnwrapIndirect_t = typename std::conditional_t< IsIndirect< T > {}, T, WrapDirect< T > >::value_type |
Functions | |
| bool | MatchesSchema (const QString &baseName, const QString &schema, QSqlDatabase &db) |
| template<size_t Idx, typename Seq > | |
| decltype(auto) constexpr | Get (const Seq &seq) |
| template<size_t Idx, typename Seq > | |
| decltype(auto) constexpr | Get (Seq &seq) |
| template<typename Seq > | |
| constexpr auto | GetFullSize (const Seq &seq) |
| template<typename T , CtString str> | |
| consteval auto | MorphFieldName () |
| template<typename Seq , int Idx> | |
| consteval auto | GetFieldName () |
| template<typename T > | |
| QVariant | ToVariantF (const T &t) noexcept |
| template<size_t Ix, typename Seq > | |
| void | BindAtIndex (const Seq &seq, QSqlQuery &query, bool bindPrimaryKey) |
| template<typename Seq > | |
| auto | DoInsert (const Seq &seq, QSqlQuery &insertQuery, bool bindPrimaryKey) |
| template<typename Seq > | |
| consteval int | PKeyIndexUnsafe () |
| template<typename Seq > | |
| consteval int | PKeyIndex () |
| template<typename Seq > | |
| constexpr auto | HasAutogenPKey () noexcept |
| template<typename Seq > | |
| constexpr auto | ExtractReplaceFields (InsertAction::Replace::WholeType) |
| template<typename Seq , auto... Ptrs> | |
| constexpr auto | ExtractReplaceFields (InsertAction::Replace::FieldsType< Ptrs... >) |
| template<typename T , size_t... Indices> | |
| T | InitializeFromQuery (const QSqlQuery &q, std::index_sequence< Indices... >, int startIdx) noexcept |
| template<ExprType Type> | |
| constexpr auto | TypeToSql () noexcept |
| constexpr bool | IsRelational (ExprType type) noexcept |
| template<ExprType Type> | |
| constexpr auto | WrapSubexpr (auto subexpr) |
| template<ExprType Type, typename Seq , typename L , typename R > | |
| constexpr bool | Typecheck () |
| template<typename T > | |
| constexpr auto | AsLeafData (const T &node) noexcept |
| template<ExprType Type, typename L , typename R > | |
| auto | MakeExprTree (const L &left, const R &right) noexcept |
| template<typename L , typename R > | |
| requires EitherIsExprTree< L, R > auto | operator== (const L &left, const R &right) noexcept |
| template<typename L , typename R > | |
| requires EitherIsExprTree< L, R > auto | operator< (const L &left, const R &right) noexcept |
| template<typename L , typename R > | |
| requires EitherIsExprTree< L, R > auto | operator<= (const L &left, const R &right) noexcept |
| template<typename L , typename R > | |
| requires EitherIsExprTree< L, R > auto | operator> (const L &left, const R &right) noexcept |
| template<typename L , typename R > | |
| requires EitherIsExprTree< L, R > auto | operator>= (const L &left, const R &right) noexcept |
| template<typename L , typename R > | |
| requires EitherIsExprTree< L, R > auto | operator!= (const L &left, const R &right) noexcept |
| template<typename L , ExprType Op> | |
| auto | operator| (const L &left, InfixBinary< Op >) noexcept |
| template<typename L , ExprType Op, typename R > | |
| auto | operator| (const InfixBinaryProxy< L, Op > &left, const R &right) noexcept |
| template<typename L , typename R > | |
| requires EitherIsExprTree< L, R > auto | operator && (const L &left, const R &right) noexcept |
| template<typename L , typename R > | |
| requires EitherIsExprTree< L, R > auto | operator|| (const L &left, const R &right) noexcept |
| template<CtString BindPrefix, typename Seq , typename Tree > | |
| constexpr auto | ExprTreeToSql () noexcept |
| template<CtString BindPrefix, typename Seq , typename Tree > | |
| void | BindExprTree (const Tree &tree, QSqlQuery &query) |
| template<typename L , typename R > | |
| requires IsSelector< L > &&IsSelector< R > SelectorUnion< L, R > | operator+ (L, R) noexcept |
| template<auto Ptr> | |
| auto | MemberFromVariant (const QVariant &var) noexcept |
| template<auto Ptr> | |
| auto | MakeIndexedQueryHandler (const QSqlQuery &q, int startIdx=0) noexcept |
| template<auto... Ptrs> | |
| auto | MakeIndexedQueryHandler (MemberPtrs< Ptrs... >, const QSqlQuery &q, int startIdx) noexcept |
| template<size_t RepIdx, size_t TupIdx, typename Tuple , typename NewType > | |
| decltype(auto) constexpr | GetReplaceTupleElem (Tuple &&tuple, NewType &&arg) noexcept |
| template<size_t RepIdx, typename NewType , typename Tuple , size_t... TupIdxs> | |
| constexpr auto | ReplaceTupleElemImpl (Tuple &&tuple, NewType &&arg, std::index_sequence< TupIdxs... >) noexcept |
| template<size_t RepIdx, typename NewType , typename... TupleArgs> | |
| constexpr auto | ReplaceTupleElem (std::tuple< TupleArgs... > &&tuple, NewType &&arg) noexcept |
| template<typename... LArgs, typename... RArgs> | |
| auto | Combine (std::tuple< LArgs... > &&left, std::tuple< RArgs... > &&right) noexcept |
| template<typename... LArgs, typename R > | |
| auto | Combine (std::tuple< LArgs... > &&left, const R &right) noexcept |
| template<typename L , typename... RArgs> | |
| auto | Combine (const L &left, std::tuple< RArgs... > &&right) noexcept |
| template<typename L , typename R > | |
| auto | Combine (const L &left, const R &right) noexcept |
| template<ResultBehaviour ResultBehaviour, typename ResList > | |
| decltype(auto) | HandleResultBehaviour (ResList &&list) noexcept |
| template<typename L , typename O > | |
| constexpr auto | LimitOffsetToString () noexcept |
| template<typename L , typename O > | |
| void | BindLimitOffset (QSqlQuery &query, L limit, O offset) noexcept |
| constexpr auto | CombineBehaviour (ResultBehaviour l, ResultBehaviour r) noexcept |
| template<template< typename... > typename Tgt = std::tuple, template< typename... > typename Src, typename... Vals> | |
| constexpr auto | MapTy (Src< Vals... >, auto f) |
| template<typename Seq , auto... Ptrs> | |
| constexpr auto | CreateIndex (const QSqlDatabase &db, Index< Ptrs... >) |
| template<typename Seq > | |
| void | AdaptCreateIndices (const QSqlDatabase &db) |
| template<auto... Ptrs> | |
| constexpr auto | ExtractConstraintFields (UniqueSubset< Ptrs... >) |
| template<auto... Ptrs> | |
| constexpr auto | ExtractConstraintFields (PrimaryKey< Ptrs... >) |
| template<typename T > | |
| constexpr auto | GetConstraintsStrings () noexcept |
| template<typename ImplFactory , typename T , size_t... Indices> | |
| constexpr auto | GetTypes (std::index_sequence< Indices... >) noexcept |
| template<auto Name, typename ImplFactory , typename T > | |
| constexpr auto | AdaptCreateTableNamed () noexcept |
| template<typename ImplFactory , typename T > | |
| constexpr auto | AdaptCreateTable () noexcept |
Variables | |
| template<typename Seq > | |
| constexpr auto | FullSize = decltype (GetFullSize (std::declval<Seq> ()))::value |
| template<typename S > | |
| constexpr auto | SeqIndices = std::make_index_sequence<SeqSize<S>> {} |
| template<typename S > | |
| constexpr auto | FieldNames |
| template<typename S > | |
| constexpr auto | BoundFieldNames |
| template<typename S > | |
| constexpr auto | QualifiedFieldNames |
| template<auto Ptr> | |
| constexpr auto | FieldNameByPtr = MorphFieldName<MemberPtrStruct_t<Ptr>, MemberNameByPtr<Ptr>> () |
| template<auto Ptr> | |
| constexpr auto | QualifiedFieldNameByPtr = MemberPtrStruct_t<Ptr>::ClassName + "." + FieldNameByPtr<Ptr> |
| template<typename T > | |
| concept | TypeNameCustomizedMember = requires { typename T::TypeName; } |
| template<typename T > | |
| concept | BaseTypeCustomized = requires { typename T::BaseType; } |
| template<typename T > | |
| constexpr bool | IsPKey = false |
| template<typename U , typename... Tags> | |
| constexpr bool | IsPKey< PKey< U, Tags... > > = true |
| template<typename Seq > | |
| constexpr int | PKeyIndex_v = PKeyIndex<Seq> () |
| template<typename Seq > | |
| concept | HasPKey = PKeyIndexUnsafe<Seq> () >= 0 |
| template<typename T > | |
| constexpr bool | IsExprTree = false |
| template<ExprType Type, typename L , typename R > | |
| constexpr bool | IsExprTree< ExprTree< Type, L, R > > = true |
| constexpr auto | ConstTrueTree_v = ExprTree<ExprType::ConstTrue> {} |
| template<typename L , typename R > | |
| concept | EitherIsExprTree = IsExprTree<L> || IsExprTree<R> |
| template<typename T > | |
| constexpr bool | IsSelector = false |
| template<> | |
| constexpr bool | IsSelector< SelectWhole > = true |
| template<AggregateFunction Fun, auto Ptr> | |
| constexpr bool | IsSelector< AggregateType< Fun, Ptr > > = true |
| template<typename FunRetType , CtString Fun, auto Ptr> | |
| constexpr bool | IsSelector< CustomFunctionType< FunRetType, Fun, Ptr > > = true |
| template<auto... Ptrs> | |
| constexpr bool | IsSelector< MemberPtrs< Ptrs... > > = true |
| template<typename L , typename R > | |
| constexpr bool | IsSelector< SelectorUnion< L, R > > = true |
| template<typename T > | |
| constexpr bool | IsSelector< SelectDistinct< T > > = true |
| using LC::Util::oral::detail::UnwrapIndirect_t = typedef typename std::conditional_t<IsIndirect<T> {}, T, WrapDirect<T> >::value_type |
| using LC::Util::oral::detail::ValueAtC_t = typedef std::decay_t<decltype (Get<Idx> (std::declval<Seq> ()))> |
|
strong |
|
strong |
|
strong |
|
strong |
| void LC::Util::oral::detail::AdaptCreateIndices | ( | const QSqlDatabase & | db | ) |
Definition at line 1730 of file oral.h.
References MapTy(), and LC::Util::oral::requires().
Here is the call graph for this function:
|
noexcept |
|
noexcept |
Definition at line 1764 of file oral.h.
References LC::Util::JoinTup(), and LC::Util::ZipWith().
Here is the call graph for this function:
|
noexcept |
Definition at line 789 of file oral.h.
Referenced by MakeExprTree(), and LC::Util::oral::detail::ExprTree< ExprType::LeafStaticPlaceholder, MemberPtrs< Ptr >, void >::operator=().
Here is the caller graph for this function:| void LC::Util::oral::detail::BindAtIndex | ( | const Seq & | seq, |
| QSqlQuery & | query, | ||
| bool | bindPrimaryKey | ||
| ) |
Definition at line 305 of file oral.h.
References IsPKey, LC::Util::ToString(), and ToVariantF().
Here is the call graph for this function:| void LC::Util::oral::detail::BindExprTree | ( | const Tree & | tree, |
| QSqlQuery & | query | ||
| ) |
Definition at line 1014 of file oral.h.
Referenced by LC::Util::oral::detail::DeleteByFieldsWrapper< T >::operator()(), and LC::Util::oral::detail::AdaptUpdate< T >::operator()().
Here is the caller graph for this function:
|
noexcept |
|
noexcept |
Definition at line 1210 of file oral.h.
Referenced by LC::Util::oral::detail::HandleSelector< T, SelectorUnion< L, R > >::Initializer().
Here is the caller graph for this function:
|
noexcept |
Definition at line 1216 of file oral.h.
References LC::Util::oral::sph::tuple.
|
noexcept |
Definition at line 1222 of file oral.h.
References LC::Util::oral::sph::tuple.
|
noexcept |
Definition at line 1228 of file oral.h.
References LC::Util::oral::sph::tuple.
|
noexcept |
| constexpr auto LC::Util::oral::detail::CreateIndex | ( | const QSqlDatabase & | db, |
| Index< Ptrs... > | |||
| ) |
Definition at line 1720 of file oral.h.
References LC::Util::Join(), and LC::Util::RunTextQuery().
Here is the call graph for this function:| auto LC::Util::oral::detail::DoInsert | ( | const Seq & | seq, |
| QSqlQuery & | insertQuery, | ||
| bool | bindPrimaryKey | ||
| ) |
Definition at line 312 of file oral.h.
References LC::Util::DBLock::DumpError().
Referenced by LC::Util::oral::detail::AdaptUpdate< T >::operator()().
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Definition at line 1008 of file oral.h.
Referenced by LC::Util::oral::detail::DeleteByFieldsWrapper< T >::operator()(), and LC::Util::oral::detail::AdaptUpdate< T >::operator()().
Here is the caller graph for this function:| constexpr auto LC::Util::oral::detail::ExtractConstraintFields | ( | UniqueSubset< Ptrs... > | ) |
Definition at line 1737 of file oral.h.
References LC::Util::Join().
Referenced by GetConstraintsStrings().
Here is the call graph for this function:
Here is the caller graph for this function:| constexpr auto LC::Util::oral::detail::ExtractConstraintFields | ( | PrimaryKey< Ptrs... > | ) |
Definition at line 1743 of file oral.h.
References LC::Util::Join().
Here is the call graph for this function:| constexpr auto LC::Util::oral::detail::ExtractReplaceFields | ( | InsertAction::Replace::WholeType | ) |
Definition at line 363 of file oral.h.
References LC::Util::oral::sph::tuple.
| constexpr auto LC::Util::oral::detail::ExtractReplaceFields | ( | InsertAction::Replace::FieldsType< Ptrs... > | ) |
Definition at line 377 of file oral.h.
References LC::Util::oral::sph::tuple.
| decltype(auto) constexpr LC::Util::oral::detail::Get | ( | const Seq & | seq | ) |
Definition at line 91 of file oral.h.
References LC::Util::oral::sph::fields.
| decltype(auto) constexpr LC::Util::oral::detail::Get | ( | Seq & | seq | ) |
Definition at line 98 of file oral.h.
References LC::Util::oral::sph::fields.
|
noexcept |
Definition at line 1749 of file oral.h.
References ExtractConstraintFields(), MapTy(), LC::Util::oral::requires(), and LC::Util::oral::sph::tuple.
Here is the call graph for this function:| consteval auto LC::Util::oral::detail::GetFieldName | ( | ) |
Definition at line 126 of file oral.h.
Referenced by LC::Util::oral::detail::AssignList< L, R >::ToSql(), and LC::Util::oral::detail::ExprTree< ExprType::LeafStaticPlaceholder, MemberPtrs< Ptr >, void >::ToSql().
Here is the caller graph for this function:| constexpr auto LC::Util::oral::detail::GetFullSize | ( | const Seq & | seq | ) |
Definition at line 105 of file oral.h.
References LC::Util::oral::sph::fields.
|
noexcept |
Definition at line 1166 of file oral.h.
References LC::Util::oral::sph::tuple.
|
noexcept |
Definition at line 1758 of file oral.h.
References LC::Util::oral::sph::tuple.
|
noexcept |
|
noexcept |
|
noexcept |
Definition at line 512 of file oral.h.
References LC::Util::oral::Convert, and LC::Util::oral::requires().
Here is the call graph for this function:
|
noexcept |
|
noexcept |
|
noexcept |
Definition at line 911 of file oral.h.
References AsLeafData().
Here is the call graph for this function:
|
noexcept |
Definition at line 1141 of file oral.h.
Referenced by LC::Util::oral::detail::HandleSelector< T, MemberPtrs< Ptrs... > >::Initializer(), and MakeIndexedQueryHandler().
Here is the caller graph for this function:
|
noexcept |
Definition at line 1147 of file oral.h.
References MakeIndexedQueryHandler(), and LC::Util::oral::sph::tuple.
Here is the call graph for this function:| constexpr auto LC::Util::oral::detail::MapTy | ( | Src< Vals... > | , |
| auto | f | ||
| ) |
Definition at line 1714 of file oral.h.
References LC::Util::oral::sph::f.
Referenced by AdaptCreateIndices(), and GetConstraintsStrings().
Here is the caller graph for this function:| bool LC::Util::oral::detail::MatchesSchema | ( | const QString & | baseName, |
| const QString & | schema, | ||
| QSqlDatabase & | db | ||
| ) |
Definition at line 18 of file migrate.h.
References LC::Util::RunTextQuery().
Referenced by LC::Util::oral::Migrate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
| consteval auto LC::Util::oral::detail::MorphFieldName | ( | ) |
Definition at line 115 of file oral.h.
References LC::Util::oral::requires().
Here is the call graph for this function:
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
| consteval int LC::Util::oral::detail::PKeyIndex | ( | ) |
| consteval int LC::Util::oral::detail::PKeyIndexUnsafe | ( | ) |
|
noexcept |
Definition at line 1184 of file oral.h.
References LC::Util::oral::sph::tuple.
|
noexcept |
Definition at line 1175 of file oral.h.
References LC::Util::oral::sph::tuple.
|
noexcept |
Definition at line 299 of file oral.h.
Referenced by BindAtIndex(), LC::Util::oral::detail::ExprTree< ExprType::LeafData, T, void >::BindValues(), LC::Util::oral::detail::ExprTree< ExprType::LeafData, std::tuple< Ts... >, void >::BindValues(), and LC::Util::oral::detail::AdaptDelete< T >::operator()().
Here is the caller graph for this function:| constexpr bool LC::Util::oral::detail::Typecheck | ( | ) |
Definition at line 603 of file oral.h.
References IsRelational(), and LC::Util::oral::requires().
Here is the call graph for this function:
|
noexcept |
| constexpr auto LC::Util::oral::detail::WrapSubexpr | ( | auto | subexpr | ) |
| concept LC::Util::oral::detail::BaseTypeCustomized = requires { typename T::BaseType; } |
| constexpr auto LC::Util::oral::detail::BoundFieldNames |
| constexpr auto LC::Util::oral::detail::ConstTrueTree_v = ExprTree<ExprType::ConstTrue> {} |
Definition at line 908 of file oral.h.
Referenced by LC::Util::oral::detail::SelectWrapper< T, detail::SelectBehaviour::One >::Build(), and LC::Util::oral::detail::SelectWrapper< T, detail::SelectBehaviour::One >::operator()().
| concept LC::Util::oral::detail::EitherIsExprTree = IsExprTree<L> || IsExprTree<R> |
| constexpr auto LC::Util::oral::detail::FieldNameByPtr = MorphFieldName<MemberPtrStruct_t<Ptr>, MemberNameByPtr<Ptr>> () |
| constexpr auto LC::Util::oral::detail::FieldNames |
| constexpr auto LC::Util::oral::detail::FullSize = decltype (GetFullSize (std::declval<Seq> ()))::value |
| concept LC::Util::oral::detail::HasPKey = PKeyIndexUnsafe<Seq> () >= 0 |
| constexpr bool LC::Util::oral::detail::IsExprTree = false |
Definition at line 619 of file oral.h.
Referenced by LC::Util::oral::detail::SelectWrapper< T, detail::SelectBehaviour::One >::operator()().
| constexpr bool LC::Util::oral::detail::IsExprTree< ExprTree< Type, L, R > > = true |
| constexpr bool LC::Util::oral::detail::IsPKey = false |
Definition at line 293 of file oral.h.
Referenced by BindAtIndex().
| constexpr bool LC::Util::oral::detail::IsPKey< PKey< U, Tags... > > = true |
| constexpr bool LC::Util::oral::detail::IsSelector = false |
| constexpr bool LC::Util::oral::detail::IsSelector< AggregateType< Fun, Ptr > > = true |
| constexpr bool LC::Util::oral::detail::IsSelector< CustomFunctionType< FunRetType, Fun, Ptr > > = true |
| constexpr bool LC::Util::oral::detail::IsSelector< MemberPtrs< Ptrs... > > = true |
| constexpr bool LC::Util::oral::detail::IsSelector< SelectDistinct< T > > = true |
| constexpr bool LC::Util::oral::detail::IsSelector< SelectorUnion< L, R > > = true |
|
inline |
| constexpr int LC::Util::oral::detail::PKeyIndex_v = PKeyIndex<Seq> () |
| constexpr auto LC::Util::oral::detail::QualifiedFieldNameByPtr = MemberPtrStruct_t<Ptr>::ClassName + "." + FieldNameByPtr<Ptr> |
| constexpr auto LC::Util::oral::detail::QualifiedFieldNames |
| constexpr auto LC::Util::oral::detail::SeqIndices = std::make_index_sequence<SeqSize<S>> {} |