![]() |
LeechCraft 0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
|
Namespaces | |
| namespace | SQLite |
Concepts | |
| concept | TypeNameCustomizedMember |
| concept | BaseTypeCustomized |
| concept | HasPKey |
| concept | EitherIsExprTree |
Typedefs | |
| template<typename Seq, int Idx> | |
| using | ValueAtC_t = std::decay_t<decltype (Get<Idx> (std::declval<Seq> ()))> |
| template<typename T> | |
| using | UnwrapIndirect_t |
Enumerations | |
| enum class | ExprType { ConstTrue , LeafStaticPlaceholder , LeafData , Greater , Less , Equal , Geq , Leq , Neq , Like , ILike , And , Or } |
| enum class | AggregateFunction { Count , Min , Max } |
| enum class | SelectBehaviour { Some , One } |
| enum class | ResultBehaviour { All , First } |
Functions | |
| bool | MatchesSchema (const QString &baseName, const QString &schema, QSqlDatabase &db) |
| template<size_t Idx, typename Seq> | |
| constexpr decltype(auto) | Get (const Seq &seq) |
| template<size_t Idx, typename Seq> | |
| constexpr decltype(auto) | 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> | |
| auto | operator== (const L &left, const R &right) noexcept |
| template<typename L, typename R> | |
| auto | operator< (const L &left, const R &right) noexcept |
| template<typename L, typename R> | |
| auto | operator<= (const L &left, const R &right) noexcept |
| template<typename L, typename R> | |
| auto | operator> (const L &left, const R &right) noexcept |
| template<typename L, typename R> | |
| auto | operator>= (const L &left, const R &right) noexcept |
| template<typename L, typename 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> | |
| auto | operator&& (const L &left, const R &right) noexcept |
| template<typename L, typename 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> | |
| 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> | |
| constexpr decltype(auto) | 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> | |
| 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 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 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 |
| using LC::Util::oral::detail::ValueAtC_t = 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 AdaptCreateIndices(), CreateIndex(), and MapTy().
Referenced by LC::Util::oral::Adapt(), and AdaptCreateIndices().
|
constexprnoexcept |
Definition at line 1787 of file oral.h.
References AdaptCreateTable(), and AdaptCreateTableNamed().
Referenced by LC::Util::oral::Adapt(), and AdaptCreateTable().
|
constexprnoexcept |
Definition at line 1764 of file oral.h.
References AdaptCreateTableNamed(), FieldNames, GetConstraintsStrings(), GetTypes(), LC::Util::JoinTup(), SeqIndices, and LC::Util::ZipWith().
Referenced by AdaptCreateTable(), and AdaptCreateTableNamed().
|
constexprnoexcept |
Definition at line 789 of file oral.h.
References AsLeafData(), and IsExprTree.
Referenced by AsLeafData(), MakeExprTree(), and LC::Util::oral::detail::ExprTree< ExprType::LeafStaticPlaceholder, MemberPtrs< Ptr >, void >::operator=().
| void LC::Util::oral::detail::BindAtIndex | ( | const Seq & | seq, |
| QSqlQuery & | query, | ||
| bool | bindPrimaryKey ) |
Definition at line 305 of file oral.h.
References BindAtIndex(), BoundFieldNames, Get(), IsPKey, LC::Util::ToString(), and ToVariantF().
Referenced by BindAtIndex(), and DoInsert().
| void LC::Util::oral::detail::BindExprTree | ( | const Tree & | tree, |
| QSqlQuery & | query ) |
Definition at line 1014 of file oral.h.
References BindExprTree().
Referenced by BindExprTree(), LC::Util::oral::detail::AdaptUpdate< T >::operator()(), and LC::Util::oral::detail::DeleteByFieldsWrapper< T >::operator()().
|
noexcept |
Definition at line 1295 of file oral.h.
References BindLimitOffset().
Referenced by BindLimitOffset().
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
constexprnoexcept |
Definition at line 1390 of file oral.h.
References All, CombineBehaviour(), and First.
Referenced by CombineBehaviour().
|
constexpr |
Definition at line 1720 of file oral.h.
References CreateIndex(), FieldNameByPtr, LC::Util::Join(), LC::Util::RunTextQuery(), and LC::Util::ToString().
Referenced by AdaptCreateIndices(), and CreateIndex().
| auto LC::Util::oral::detail::DoInsert | ( | const Seq & | seq, |
| QSqlQuery & | insertQuery, | ||
| bool | bindPrimaryKey ) |
Definition at line 312 of file oral.h.
References BindAtIndex(), DoInsert(), LC::Util::DBLock::DumpError(), and SeqIndices.
Referenced by DoInsert(), and LC::Util::oral::detail::AdaptUpdate< T >::operator()().
|
constexprnoexcept |
Definition at line 1008 of file oral.h.
References ExprTreeToSql().
Referenced by ExprTreeToSql(), LC::Util::oral::detail::AdaptUpdate< T >::operator()(), and LC::Util::oral::detail::DeleteByFieldsWrapper< T >::operator()().
|
constexpr |
Definition at line 1743 of file oral.h.
References ExtractConstraintFields(), FieldNameByPtr, and LC::Util::Join().
|
constexpr |
Definition at line 1737 of file oral.h.
References ExtractConstraintFields(), FieldNameByPtr, and LC::Util::Join().
Referenced by ExtractConstraintFields(), ExtractConstraintFields(), and GetConstraintsStrings().
|
constexpr |
Definition at line 377 of file oral.h.
References ExtractReplaceFields(), and FieldNameByPtr.
|
constexpr |
Definition at line 363 of file oral.h.
References ExtractReplaceFields(), FieldNames, HasAutogenPKey(), and PKeyIndex_v.
Referenced by ExtractReplaceFields(), and ExtractReplaceFields().
|
constexpr |
Definition at line 91 of file oral.h.
References Get().
Referenced by BindAtIndex(), Get(), Get(), InitializeFromQuery(), and LC::Util::oral::detail::AdaptDelete< Seq >::operator()().
|
constexpr |
|
constexprnoexcept |
Definition at line 1749 of file oral.h.
References ExtractConstraintFields(), GetConstraintsStrings(), and MapTy().
Referenced by AdaptCreateTableNamed(), and GetConstraintsStrings().
|
consteval |
Definition at line 126 of file oral.h.
References GetFieldName(), LC::Util::oral::MemberNameByIdx, and MorphFieldName().
Referenced by GetFieldName().
|
constexpr |
Definition at line 105 of file oral.h.
References GetFullSize().
Referenced by GetFullSize().
|
constexprnoexcept |
Definition at line 1166 of file oral.h.
References GetReplaceTupleElem().
Referenced by GetReplaceTupleElem(), and ReplaceTupleElemImpl().
|
constexprnoexcept |
Definition at line 1758 of file oral.h.
References GetTypes().
Referenced by AdaptCreateTableNamed(), and GetTypes().
|
noexcept |
Definition at line 1240 of file oral.h.
References All, First, and HandleResultBehaviour().
Referenced by HandleResultBehaviour().
|
constexprnoexcept |
Definition at line 354 of file oral.h.
References HasAutogenPKey(), LC::Util::HasType(), and PKeyIndex_v.
Referenced by ExtractReplaceFields(), and HasAutogenPKey().
|
noexcept |
Definition at line 512 of file oral.h.
References LC::Util::oral::Convert, Get(), and InitializeFromQuery().
Referenced by InitializeFromQuery(), and LC::Util::oral::detail::HandleSelector< T, SelectWhole >::Initializer().
|
constexprnoexcept |
Definition at line 570 of file oral.h.
References Equal, Geq, Greater, ILike, IsRelational(), Leq, Less, Like, and Neq.
Referenced by IsRelational(), and Typecheck().
|
constexprnoexcept |
Definition at line 1276 of file oral.h.
References LimitOffsetToString().
Referenced by LimitOffsetToString().
|
noexcept |
Definition at line 911 of file oral.h.
References AsLeafData(), and MakeExprTree().
Referenced by MakeExprTree(), operator!=(), operator&&(), operator<(), operator<=(), operator==(), operator>(), operator>=(), operator|(), and operator||().
|
noexcept |
Definition at line 1141 of file oral.h.
References MakeIndexedQueryHandler(), and MemberFromVariant().
Referenced by LC::Util::oral::detail::HandleSelector< T, MemberPtrs< Ptrs... > >::Initializer(), MakeIndexedQueryHandler(), and MakeIndexedQueryHandler().
|
noexcept |
Definition at line 1147 of file oral.h.
References MakeIndexedQueryHandler(), and MemberFromVariant().
|
constexpr |
Definition at line 1714 of file oral.h.
References MapTy().
Referenced by AdaptCreateIndices(), GetConstraintsStrings(), and MapTy().
| 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().
|
noexcept |
Definition at line 1135 of file oral.h.
References LC::Util::oral::Convert, and MemberFromVariant().
Referenced by MakeIndexedQueryHandler(), MakeIndexedQueryHandler(), and MemberFromVariant().
|
consteval |
Definition at line 115 of file oral.h.
References MorphFieldName().
Referenced by GetFieldName(), and MorphFieldName().
|
noexcept |
Definition at line 958 of file oral.h.
References MakeExprTree().
|
noexcept |
Definition at line 995 of file oral.h.
References MakeExprTree().
|
noexcept |
|
noexcept |
Definition at line 930 of file oral.h.
References MakeExprTree().
|
noexcept |
Definition at line 937 of file oral.h.
References MakeExprTree().
|
noexcept |
Definition at line 923 of file oral.h.
References MakeExprTree().
|
noexcept |
Definition at line 944 of file oral.h.
References MakeExprTree().
|
noexcept |
Definition at line 951 of file oral.h.
References MakeExprTree().
|
noexcept |
Definition at line 988 of file oral.h.
References MakeExprTree().
|
noexcept |
|
noexcept |
Definition at line 1002 of file oral.h.
References MakeExprTree().
|
consteval |
Definition at line 340 of file oral.h.
References PKeyIndex(), and PKeyIndexUnsafe().
Referenced by PKeyIndex().
|
consteval |
Definition at line 328 of file oral.h.
References IsPKey, PKeyIndexUnsafe(), and SeqIndices.
Referenced by PKeyIndex(), and PKeyIndexUnsafe().
|
constexprnoexcept |
Definition at line 1184 of file oral.h.
References ReplaceTupleElem(), and ReplaceTupleElemImpl().
Referenced by ReplaceTupleElem().
|
constexprnoexcept |
Definition at line 1175 of file oral.h.
References GetReplaceTupleElem(), and ReplaceTupleElemImpl().
Referenced by ReplaceTupleElem(), and ReplaceTupleElemImpl().
|
noexcept |
Definition at line 299 of file oral.h.
References LC::Util::oral::Convert, and ToVariantF().
Referenced by BindAtIndex(), LC::Util::oral::detail::ExprTree< ExprType::LeafData, std::tuple< Ts... >, void >::BindValues(), LC::Util::oral::detail::ExprTree< ExprType::LeafData, T, void >::BindValues(), LC::Util::oral::detail::AdaptDelete< Seq >::operator()(), and ToVariantF().
|
constexpr |
Definition at line 603 of file oral.h.
References IsRelational(), and Typecheck().
Referenced by LC::Util::oral::detail::ExprTree< Type, L, R >::ToSql(), and Typecheck().
|
constexprnoexcept |
Definition at line 546 of file oral.h.
References And, Equal, Geq, Greater, ILike, Leq, Less, Like, Neq, Or, and TypeToSql().
Referenced by LC::Util::oral::detail::ExprTree< Type, L, R >::ToSql(), and TypeToSql().
|
constexpr |
Definition at line 583 of file oral.h.
References ILike, and WrapSubexpr().
Referenced by LC::Util::oral::detail::ExprTree< Type, L, R >::ToSql(), and WrapSubexpr().
|
constexpr |
Definition at line 142 of file oral.h.
Referenced by BindAtIndex().
|
constexpr |
|
constexpr |
Definition at line 154 of file oral.h.
Referenced by CreateIndex(), ExtractConstraintFields(), ExtractConstraintFields(), ExtractReplaceFields(), LC::Util::oral::detail::ExprTree< ExprType::LeafStaticPlaceholder, MemberPtrs< Ptr >, void >::GetFieldName(), LC::Util::oral::Type2Name< ImplFactory, References< Ptr > >::operator()(), and LC::Util::oral::detail::ExprTree< ExprType::LeafStaticPlaceholder, MemberPtrs< Ptrs... >, void >::ToSql().
|
constexpr |
Definition at line 136 of file oral.h.
Referenced by AdaptCreateTableNamed(), ExtractReplaceFields(), LC::Util::oral::Migrate(), and ORAL_ADAPT_STRUCT().
|
constexpr |
|
constexpr |
Definition at line 619 of file oral.h.
Referenced by AsLeafData(), LC::Util::oral::detail::SelectWrapper< T, SelectBehaviour >::operator()(), and LC::Util::oral::detail::AssignList< L, R >::ToSql().
|
constexpr |
|
constexpr |
Definition at line 293 of file oral.h.
Referenced by BindAtIndex(), and PKeyIndexUnsafe().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
|
constexpr |
Definition at line 348 of file oral.h.
Referenced by ExtractReplaceFields(), HasAutogenPKey(), and LC::Util::oral::detail::AdaptDelete< Seq >::operator()().
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 133 of file oral.h.
Referenced by AdaptCreateTableNamed(), DoInsert(), LC::Util::oral::detail::HandleSelector< T, SelectWhole >::Initializer(), and PKeyIndexUnsafe().