![]() |
LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
|
Namespaces | |
namespace | PostgreSQL |
namespace | SQLite |
Concepts | |
concept | TypeNameCustomized |
concept | BaseTypeCustomized |
concept | HasPKey |
Typedefs | |
template<typename Seq, int Idx> | |
using | ValueAtC_t = std::decay_t<decltype (Get<Idx> (std::declval<Seq> ()))> |
template<typename T> | |
using | UnwrapIndirect_t |
template<typename L, typename R> | |
using | EnableRelOp_t = std::enable_if_t<EitherIsExprTree<L, R> ()> |
Enumerations | |
enum class | ExprType { ConstTrue , LeafStaticPlaceholder , LeafData , Greater , Less , Equal , Geq , Leq , Neq , Like , And , Or } |
enum class | AggregateFunction { Count , Min , Max } |
enum class | SelectBehaviour { Some , One } |
enum | 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 T, CtString str> | |
consteval auto | MorphFieldName () |
template<typename Seq, int Idx> | |
consteval auto | GetFieldName () |
template<auto Ptr> | |
constexpr size_t | FieldIndex () noexcept |
template<auto Ptr> | |
constexpr auto | GetFieldNamePtr () noexcept |
template<auto Ptr> | |
constexpr auto | GetQualifiedFieldNamePtr () noexcept |
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 | ExtractConflictingFields (InsertAction::Replace::PKeyType) |
template<typename Seq, auto... Ptrs> | |
constexpr auto | ExtractConflictingFields (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, 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> | |
constexpr bool | EitherIsExprTree () noexcept |
template<typename L, typename R, typename = EnableRelOp_t<L, R>> | |
auto | operator< (const L &left, const R &right) noexcept |
template<typename L, typename R, typename = EnableRelOp_t<L, R>> | |
auto | operator> (const L &left, const R &right) noexcept |
template<typename L, typename R, typename = EnableRelOp_t<L, R>> | |
auto | operator== (const L &left, const R &right) noexcept |
template<typename L, typename R, typename = EnableRelOp_t<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, typename = EnableRelOp_t<L, R>> | |
auto | operator&& (const L &left, const R &right) noexcept |
template<typename L, typename R, typename = EnableRelOp_t<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, typename = std::enable_if_t<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> | |
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 F, typename R> | |
HandleSelectorResult (QString, F, R) -> HandleSelectorResult< F, R > | |
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<typename T, size_t... Fields> | |
constexpr auto | ExtractConstraintFields (UniqueSubset< Fields... >) |
template<typename T, size_t... Fields> | |
constexpr auto | ExtractConstraintFields (PrimaryKey< Fields... >) |
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 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<typename Seq> | |
constexpr int | PKeyIndex_v = PKeyIndex<Seq> () |
constexpr auto | ConstTrueTree_v = ExprTree<ExprType::ConstTrue> {} |
constexpr CountAll * | CountAllPtr = nullptr |
using LC::Util::oral::detail::EnableRelOp_t = std::enable_if_t<EitherIsExprTree<L, R> ()> |
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 |
|
constexprnoexcept |
Definition at line 1602 of file oral.h.
References AdaptCreateTable(), and AdaptCreateTableNamed().
Referenced by LC::Util::oral::Adapt(), and AdaptCreateTable().
|
constexprnoexcept |
Definition at line 1579 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 707 of file oral.h.
References AsLeafData().
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 316 of file oral.h.
References BindAtIndex(), BoundFieldNames, Get(), LC::Util::ToString(), and ToVariantF().
Referenced by BindAtIndex(), and DoInsert().
void LC::Util::oral::detail::BindExprTree | ( | const Tree & | tree, |
QSqlQuery & | query ) |
Definition at line 881 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 1149 of file oral.h.
References BindLimitOffset().
Referenced by BindLimitOffset().
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
constexprnoexcept |
Definition at line 1232 of file oral.h.
References All, CombineBehaviour(), and First.
Referenced by CombineBehaviour().
auto LC::Util::oral::detail::DoInsert | ( | const Seq & | seq, |
QSqlQuery & | insertQuery, | ||
bool | bindPrimaryKey ) |
Definition at line 323 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 797 of file oral.h.
References EitherIsExprTree().
Referenced by EitherIsExprTree().
|
constexprnoexcept |
Definition at line 875 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 380 of file oral.h.
References ExtractConflictingFields(), and FieldNames.
|
constexpr |
Definition at line 374 of file oral.h.
References ExtractConflictingFields(), and GetFieldName().
Referenced by ExtractConflictingFields(), and ExtractConflictingFields().
|
constexpr |
Definition at line 1553 of file oral.h.
References ExtractConstraintFields(), FieldNames, and LC::Util::Join().
|
constexpr |
Definition at line 1547 of file oral.h.
References ExtractConstraintFields(), FieldNames, and LC::Util::Join().
Referenced by ExtractConstraintFields(), ExtractConstraintFields(), and GetConstraintsStrings().
|
constexprnoexcept |
Definition at line 174 of file oral.h.
References FieldIndex().
Referenced by FieldIndex().
|
constexpr |
Definition at line 123 of file oral.h.
References Get().
Referenced by BindAtIndex(), Get(), Get(), GetFieldName(), InitializeFromQuery(), and LC::Util::oral::detail::AdaptDelete< Seq >::operator()().
|
constexpr |
|
constexprnoexcept |
Definition at line 1559 of file oral.h.
References ExtractConstraintFields(), and GetConstraintsStrings().
Referenced by AdaptCreateTableNamed(), and GetConstraintsStrings().
|
consteval |
Definition at line 146 of file oral.h.
References Get(), GetFieldName(), and MorphFieldName().
Referenced by ExtractConflictingFields(), GetFieldName(), GetFieldNamePtr(), and GetQualifiedFieldNamePtr().
|
constexprnoexcept |
Definition at line 181 of file oral.h.
References GetFieldName(), and GetFieldNamePtr().
Referenced by LC::Util::oral::detail::ExprTree< ExprType::LeafStaticPlaceholder, MemberPtrs< Ptr >, void >::GetFieldName(), GetFieldNamePtr(), and LC::Util::oral::Type2Name< ImplFactory, References< Ptr > >::operator()().
|
constexprnoexcept |
Definition at line 188 of file oral.h.
References GetFieldName(), and GetQualifiedFieldNamePtr().
Referenced by GetQualifiedFieldNamePtr().
|
constexprnoexcept |
Definition at line 1009 of file oral.h.
References GetReplaceTupleElem().
Referenced by GetReplaceTupleElem(), and ReplaceTupleElemImpl().
|
constexprnoexcept |
Definition at line 1573 of file oral.h.
References GetTypes().
Referenced by AdaptCreateTableNamed(), and GetTypes().
|
noexcept |
Definition at line 1083 of file oral.h.
References All, First, and HandleResultBehaviour().
Referenced by HandleResultBehaviour().
LC::Util::oral::detail::HandleSelectorResult | ( | QString | , |
F | , | ||
R | ) -> HandleSelectorResult< F, R > |
|
constexprnoexcept |
Definition at line 365 of file oral.h.
References HasAutogenPKey(), LC::Util::HasType(), and PKeyIndex_v.
Referenced by HasAutogenPKey().
|
noexcept |
Definition at line 490 of file oral.h.
References Get(), and InitializeFromQuery().
Referenced by InitializeFromQuery(), and LC::Util::oral::detail::HandleSelector< T, SelectWhole >::Initializer().
|
constexprnoexcept |
Definition at line 547 of file oral.h.
References Equal, Geq, Greater, IsRelational(), Leq, Less, Like, and Neq.
Referenced by IsRelational(), and Typecheck().
|
constexprnoexcept |
Definition at line 1130 of file oral.h.
References LimitOffsetToString().
Referenced by LimitOffsetToString().
|
noexcept |
Definition at line 789 of file oral.h.
References AsLeafData(), and MakeExprTree().
Referenced by MakeExprTree(), operator!=(), operator&&(), operator<(), operator==(), operator>(), operator|(), and operator||().
|
noexcept |
Definition at line 984 of file oral.h.
References MakeIndexedQueryHandler(), and MemberFromVariant().
Referenced by LC::Util::oral::detail::HandleAggSelector< Aggregate, T, Ptr >::Initializer(), LC::Util::oral::detail::HandleSelector< T, MemberPtrs< Ptrs... > >::Initializer(), MakeIndexedQueryHandler(), and MakeIndexedQueryHandler().
|
noexcept |
Definition at line 990 of file oral.h.
References MakeIndexedQueryHandler(), and MemberFromVariant().
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 978 of file oral.h.
References MemberFromVariant().
Referenced by MakeIndexedQueryHandler(), MakeIndexedQueryHandler(), and MemberFromVariant().
|
consteval |
Definition at line 135 of file oral.h.
References MorphFieldName().
Referenced by GetFieldName(), and MorphFieldName().
|
noexcept |
Definition at line 828 of file oral.h.
References MakeExprTree().
|
noexcept |
Definition at line 863 of file oral.h.
References MakeExprTree().
|
noexcept |
|
noexcept |
Definition at line 810 of file oral.h.
References MakeExprTree().
|
noexcept |
Definition at line 822 of file oral.h.
References MakeExprTree().
|
noexcept |
Definition at line 816 of file oral.h.
References MakeExprTree().
|
noexcept |
Definition at line 857 of file oral.h.
References MakeExprTree().
|
noexcept |
|
noexcept |
Definition at line 869 of file oral.h.
References MakeExprTree().
|
consteval |
Definition at line 351 of file oral.h.
References PKeyIndex(), and PKeyIndexUnsafe().
Referenced by PKeyIndex().
|
consteval |
Definition at line 339 of file oral.h.
References PKeyIndexUnsafe(), and SeqIndices.
Referenced by PKeyIndex(), and PKeyIndexUnsafe().
|
constexprnoexcept |
Definition at line 1027 of file oral.h.
References ReplaceTupleElem(), and ReplaceTupleElemImpl().
Referenced by ReplaceTupleElem().
|
constexprnoexcept |
Definition at line 1018 of file oral.h.
References GetReplaceTupleElem(), and ReplaceTupleElemImpl().
Referenced by ReplaceTupleElem(), and ReplaceTupleElemImpl().
|
noexcept |
Definition at line 310 of file oral.h.
References ToVariantF().
Referenced by BindAtIndex(), LC::Util::oral::detail::ExprTree< ExprType::LeafData, T, void >::BindValues(), LC::Util::oral::detail::AdaptDelete< Seq >::operator()(), and ToVariantF().
|
constexpr |
Definition at line 570 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 523 of file oral.h.
References And, Equal, Geq, Greater, Leq, Less, Like, Neq, Or, and TypeToSql().
Referenced by LC::Util::oral::detail::ExprTree< Type, L, R >::ToSql(), and TypeToSql().
|
constexpr |
Definition at line 162 of file oral.h.
Referenced by BindAtIndex().
|
constexpr |
|
inlineconstexpr |
|
constexpr |
Definition at line 156 of file oral.h.
Referenced by AdaptCreateTableNamed(), ExtractConflictingFields(), ExtractConstraintFields(), ExtractConstraintFields(), and LC::Util::oral::Migrate().
|
constexpr |
Definition at line 359 of file oral.h.
Referenced by HasAutogenPKey(), and LC::Util::oral::detail::AdaptDelete< Seq >::operator()().
|
constexpr |
|
constexpr |
Definition at line 153 of file oral.h.
Referenced by AdaptCreateTableNamed(), DoInsert(), LC::Util::oral::detail::HandleSelector< T, SelectWhole >::Initializer(), and PKeyIndexUnsafe().